pixie.c: Use `socklen_t' rather than `size_t'.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 28 Jun 2013 23:22:28 +0000 (00:22 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 28 Jun 2013 23:31:54 +0000 (00:31 +0100)
configure.ac
progs/pixie.c

index fbbb12e..dc7434a 100644 (file)
@@ -53,6 +53,7 @@ dnl Various standard types.
 AC_CHECK_TYPE([pid_t], [int])
 AC_TYPE_UID_T
 AC_CHECK_TYPE([ssize_t], [int])
+AC_CHECK_TYPE([socklen_t], [int])
 
 dnl The maths library.
 mdw_ORIG_LIBS=$LIBS
index 79162a8..d964c0f 100644 (file)
@@ -848,7 +848,7 @@ static void pixserv_accept(int fd, unsigned mode, void *p)
 {
   int nfd;
   struct sockaddr_un sun;
-  size_t sunsz = sizeof(sun);
+  socklen_t sunsz = sizeof(sun);
 
   if (mode != SEL_READ)
     return;