From 67ea728586cfcdb4815bd1dde6f85da222ef94ff Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 29 Jun 2013 00:22:28 +0100 Subject: [PATCH] pixie.c: Use `socklen_t' rather than `size_t'. --- configure.ac | 1 + progs/pixie.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- 2.11.0