X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=comstack%2Ftcpip.c;h=667accf49360959eea4e9ba7834ee46e04e205a1;hp=f65f2da9b58546294474f1cef0713e257bd704c5;hb=3a14421799597d61196e2bb07bdd83396000cb45;hpb=5379711b958f1b4ae4148b1734f618e71b3dd6ef diff --git a/comstack/tcpip.c b/comstack/tcpip.c index f65f2da..667accf 100644 --- a/comstack/tcpip.c +++ b/comstack/tcpip.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: tcpip.c,v $ - * Revision 1.24 1998-06-29 07:59:17 adam + * Revision 1.25 1998-07-07 15:49:23 adam + * Added braces to avoid warning. + * + * Revision 1.24 1998/06/29 07:59:17 adam * Minor fix. * * Revision 1.23 1998/06/23 15:37:50 adam @@ -560,6 +563,7 @@ int tcpip_get(COMSTACK h, char **buf, int *bufsize) if (!(*buf =(char *)xrealloc(*buf, *bufsize *= 2))) return -1; if ((res = recv(h->iofile, *buf + hasread, CS_TCPIP_BUFCHUNK, 0)) < 0) + { #ifdef WINDOWS if (WSAGetLastError() == WSAEWOULDBLOCK) #else @@ -572,6 +576,7 @@ int tcpip_get(COMSTACK h, char **buf, int *bufsize) break; else return -1; + } if (!res) return 0; hasread += res;