From 4337c7c0506800ff662e55806eb1867812b9802b Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 28 Oct 2010 01:10:10 +0000 Subject: Fix compiler warnings on 64-bit. --- common/smtppass.c | 2 +- common/sock_any.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/smtppass.c b/common/smtppass.c index afdff03..4119335 100644 --- a/common/smtppass.c +++ b/common/smtppass.c @@ -727,7 +727,7 @@ cleanup: thread->fd = -1; sp_unlock(); - return (void*)(ret == 0 ? 0 : 1); + return (void*)(ret == 0 ? (size_t)0 : (size_t)1); } static int make_connections(spctx_t* ctx, int client) diff --git a/common/sock_any.h b/common/sock_any.h index af87691..9282e36 100644 --- a/common/sock_any.h +++ b/common/sock_any.h @@ -57,7 +57,7 @@ struct sockaddr_any struct sockaddr_in6 in6; #endif } s; - size_t namelen; + socklen_t namelen; }; #define SANY_ADDR(any) ((any).s.a) -- cgit v1.2.3