diff options
-rw-r--r-- | interface.c | 4 | ||||
-rw-r--r-- | pop3.c | 2 | ||||
-rw-r--r-- | sink.c | 2 | ||||
-rw-r--r-- | socket.c | 4 |
4 files changed, 7 insertions, 5 deletions
diff --git a/interface.c b/interface.c index 0d1c5ad0..926c82ef 100644 --- a/interface.c +++ b/interface.c @@ -63,8 +63,6 @@ struct interface_pair_s { struct in_addr interface_mask; } *interface_pair; -static char *netdevfmt; - /* * Count of packets to see on an interface before monitor considers it up. * Needed because when pppd shuts down the link, the packet counts go up @@ -76,6 +74,8 @@ static char *netdevfmt; #ifdef linux #define have_interface_init +static char *netdevfmt; + void interface_init(void) /* figure out which /proc/net/dev format to use */ { @@ -1182,6 +1182,8 @@ static int pop3_fetch(int sock, struct query *ctl, int number, int *lenp) } while (!(buf[0] == '.' && (buf[1] == '\r' || buf[1] == '\n' || buf[1] == '\0'))); } +#else + (void)ctl; #endif /* SDPS_ENABLE */ /* @@ -300,7 +300,7 @@ static int send_bouncemail(struct query *ctl, struct msgblk *msg, /* our first duty is to keep the sacred foo counters turning... */ snprintf(boundary, sizeof(boundary), "foo-mani-padme-hum-%ld-%ld-%ld", - (long)getpid(), (long)getppid(), time(NULL)); + (long)getpid(), (long)getppid(), (long)time(NULL)); if (outlevel >= O_VERBOSE) report(stdout, GT_("SMTP: (bounce-message body)\n")); @@ -591,7 +591,7 @@ SSL *SSLGetContext( int sock ) if( NULL == _ctx ) return NULL; - if( sock < 0 || sock > FD_SETSIZE ) + if( sock < 0 || (unsigned)sock > FD_SETSIZE ) return NULL; return _ssl_context[sock]; } @@ -807,7 +807,7 @@ int SSLOpen(int sock, char *mycert, char *mykey, char *myproto, int certck, char #endif /* SSL_ENABLE */ - if( sock < 0 || sock > FD_SETSIZE ) { + if( sock < 0 || (unsigned)sock > FD_SETSIZE ) { report(stderr, GT_("File descriptor out of range for SSL") ); return( -1 ); } |