diff options
author | Stef Walter <stef@thewalter.net> | 2010-10-28 01:10:10 +0000 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2011-01-23 15:47:45 -0600 |
commit | 4337c7c0506800ff662e55806eb1867812b9802b (patch) | |
tree | 0d92bee3846a909893d2cda0142d8225db847ed7 /common | |
parent | be6176d7ef5272d7b26ef4d9a1ecd8763fc91488 (diff) |
Fix compiler warnings on 64-bit.
Diffstat (limited to 'common')
-rw-r--r-- | common/smtppass.c | 2 | ||||
-rw-r--r-- | common/sock_any.h | 2 |
2 files changed, 2 insertions, 2 deletions
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) |