diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-06-22 20:47:26 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-06-22 20:47:26 +0000 |
commit | 915b941729895fe4f6f71528564606eeb1d13a8f (patch) | |
tree | bb1c020125945d0e4a6e4331d3470af235d5ddf2 /socket.c | |
parent | 4cc0e600645340606411571d0b4ce656f13011d0 (diff) | |
download | fetchmail-915b941729895fe4f6f71528564606eeb1d13a8f.tar.gz fetchmail-915b941729895fe4f6f71528564606eeb1d13a8f.tar.bz2 fetchmail-915b941729895fe4f6f71528564606eeb1d13a8f.zip |
Sunil's code-duplication cleanup patch.
svn path=/trunk/; revision=3651
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -525,10 +525,8 @@ int SockWrite(int sock, char *buf, int len) if( NULL != ( ssl = SSLGetContext( sock ) ) ) n = SSL_write(ssl, buf, len); else - n = fm_write(sock, buf, len); -#else - n = fm_write(sock, buf, len); -#endif +#endif /* SSL_ENABLE */ + n = fm_write(sock, buf, len); if (n <= 0) return -1; len -= n; @@ -676,14 +674,10 @@ int SockPeek(int sock) return 0; /* Give him a '\0' character */ } - } else { - n = fm_peek(sock, &ch, 1); } -#else - - n = fm_peek(sock, &ch, 1); - + else #endif /* SSL_ENABLE */ + n = fm_peek(sock, &ch, 1); if (n == -1) return -1; |