From e5e09844ea6134f8a8fe851e6b572d968a2ecc44 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Sat, 29 Jan 2011 20:43:08 +0100 Subject: [PATCH] tcp: use socklen_t where appropriate rather than specific type In particular, fixes Cygwin build where socklen_t is defined as int in line with native win32 api definition. --- gst/tcp/gsttcpserversink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/tcp/gsttcpserversink.c b/gst/tcp/gsttcpserversink.c index c0cb95f73d..fdca0ec755 100644 --- a/gst/tcp/gsttcpserversink.c +++ b/gst/tcp/gsttcpserversink.c @@ -149,7 +149,7 @@ gst_tcp_server_sink_handle_server_read (GstTCPServerSink * sink) /* new client */ int client_sock_fd; struct sockaddr_in client_address; - unsigned int client_address_len; + socklen_t client_address_len; /* For some stupid reason, client_address and client_address_len has to be * zeroed */