summaryrefslogtreecommitdiff
path: root/common/spio.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-09-04 00:34:42 +0000
committerStef Walter <stef@memberwebs.com>2004-09-04 00:34:42 +0000
commit9eb7ce750e7718a958f9ffc0dd21b5b6c16a7a55 (patch)
tree8a7a5c3c30287a9a8908127cc1198b464789587e /common/spio.c
parent727802f454745929b6cf425f6fed42fe2beadf02 (diff)
Supress needless warnings
Diffstat (limited to 'common/spio.c')
-rw-r--r--common/spio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/spio.c b/common/spio.c
index dab1e5a..36b495e 100644
--- a/common/spio.c
+++ b/common/spio.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");