From aae95bcac83dd2f1a5e258896ba24db1d626ccf1 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 4 Sep 2004 00:34:42 +0000 Subject: Supress needless warnings --- src/clio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/clio.c') diff --git a/src/clio.c b/src/clio.c index dab1e5a..36b495e 100644 --- a/src/clio.c +++ b/src/clio.c @@ -105,7 +105,7 @@ void clio_init(clio_t* io, const char* name) io->fd = -1; } -int clio_connect(clamsmtp_context_t* ctx, clio_t* io, struct sockaddr_any* sany, +int clio_connect(clamsmtp_context_t* ctx, clio_t* io, const struct sockaddr_any* sany, const char* addrname) { int ret = 0; @@ -183,7 +183,7 @@ int clio_select(clamsmtp_context_t* ctx, clio_t** io) /* Select on the above */ - switch(select(FD_SETSIZE, &mask, NULL, NULL, &(g_state->timeout))) + switch(select(FD_SETSIZE, &mask, NULL, NULL, (struct timeval*)&(g_state->timeout))) { case 0: messagex(ctx, LOG_ERR, "network operation timed out"); -- cgit v1.2.3