aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-03-25 14:35:10 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-03-25 14:35:10 +0000
commit7294aa6146ceb9dd2ebff8b496e351a81a0c8c8c (patch)
treee1b13011abfb19bc201b0bc2ad937608cbc60d27 /socket.c
parent98ca410dab12d43961b72596d9344f8048e30df9 (diff)
downloadfetchmail-7294aa6146ceb9dd2ebff8b496e351a81a0c8c8c.tar.gz
fetchmail-7294aa6146ceb9dd2ebff8b496e351a81a0c8c8c.tar.bz2
fetchmail-7294aa6146ceb9dd2ebff8b496e351a81a0c8c8c.zip
More warning fixes (from FreeBSD 6.1).
svn path=/branches/BRANCH_6-3/; revision=4753
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/socket.c b/socket.c
index 10cd5d99..b953f3f3 100644
--- a/socket.c
+++ b/socket.c
@@ -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 );
}