From: Mark Wooding Date: Fri, 28 Jun 2013 23:22:28 +0000 (+0100) Subject: pixie.c: Use `socklen_t' rather than `size_t'. X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/67ea728586cfcdb4815bd1dde6f85da222ef94ff pixie.c: Use `socklen_t' rather than `size_t'. --- diff --git a/configure.ac b/configure.ac index fbbb12e..dc7434a 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/progs/pixie.c b/progs/pixie.c index 79162a8..d964c0f 100644 --- a/progs/pixie.c +++ b/progs/pixie.c @@ -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;