diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-03-25 14:35:10 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-03-25 14:35:10 +0000 |
commit | 7294aa6146ceb9dd2ebff8b496e351a81a0c8c8c (patch) | |
tree | e1b13011abfb19bc201b0bc2ad937608cbc60d27 /socket.c | |
parent | 98ca410dab12d43961b72596d9344f8048e30df9 (diff) | |
download | fetchmail-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ); } |