aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-10-20 09:14:04 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-10-20 09:14:04 +0000
commit334cb452bfee4d0511f9591292903d01f58efaf9 (patch)
tree21d7baddc9b7fde16dfa1c315693623649144083 /socket.c
parent65f9c5e8d026830b0fbd2583007c507e5e6e2b78 (diff)
downloadfetchmail-334cb452bfee4d0511f9591292903d01f58efaf9.tar.gz
fetchmail-334cb452bfee4d0511f9591292903d01f58efaf9.tar.bz2
fetchmail-334cb452bfee4d0511f9591292903d01f58efaf9.zip
Fix miscellaneous warnings.
svn path=/trunk/; revision=3953
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 15598272..5c3861bc 100644
--- a/socket.c
+++ b/socket.c
@@ -507,7 +507,7 @@ va_dcl {
static SSL_CTX *_ctx = NULL;
static SSL *_ssl_context[FD_SETSIZE];
-SSL *SSLGetContext( int );
+static SSL *SSLGetContext( int );
#endif /* SSL_ENABLE */
int SockWrite(int sock, char *buf, int len)
@@ -538,7 +538,9 @@ int SockRead(int sock, char *buf, int len)
{
char *newline, *bp = buf;
int n;
+#ifdef FORCE_STUFFING
int maxavailable = 0;
+#endif
#ifdef SSL_ENABLE
SSL *ssl;
#endif
@@ -578,7 +580,9 @@ int SockRead(int sock, char *buf, int len)
(void)SSL_get_error(ssl, n);
return(-1);
}
+#ifdef FORCE_STUFFING
maxavailable = n;
+#endif
if( 0 == n ) {
/* SSL_peek says no data... Does he mean no data
or did the connection blow up? If we got an error
@@ -622,7 +626,9 @@ int SockRead(int sock, char *buf, int len)
if ((n = fm_peek(sock, bp, len)) <= 0)
#endif
return (-1);
+#ifdef FORCE_STUFFING
maxavailable = n;
+#endif
if ((newline = memchr(bp, '\n', n)) != NULL)
n = newline - bp + 1;
#ifndef __BEOS__