From: Adam Dickmeiss Date: Tue, 7 Jul 1998 15:49:23 +0000 (+0000) Subject: Added braces to avoid warning. X-Git-Tag: YAZ.1.8~465 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=3a14421799597d61196e2bb07bdd83396000cb45 Added braces to avoid warning. --- diff --git a/ccl/cclqual.c b/ccl/cclqual.c index 000c33b..343d64f 100644 --- a/ccl/cclqual.c +++ b/ccl/cclqual.c @@ -45,7 +45,10 @@ * Europagate, 1995 * * $Log: cclqual.c,v $ - * Revision 1.9 1998-02-11 11:53:33 adam + * Revision 1.10 1998-07-07 15:49:40 adam + * Added braces to avoid warning. + * + * Revision 1.9 1998/02/11 11:53:33 adam * Changed code so that it compiles as C++. * * Revision 1.8 1997/09/29 08:56:38 adam @@ -211,6 +214,7 @@ struct ccl_rpn_attr *ccl_qual_search (CCL_parser cclp, return NULL; for (q = cclp->bibset->list; q; q = q->next) if (strlen(q->name) == len) + { if (cclp->ccl_case_sensitive) { if (!memcmp (name, q->name, len)) @@ -221,6 +225,7 @@ struct ccl_rpn_attr *ccl_qual_search (CCL_parser cclp, if (!ccl_memicmp (name, q->name, len)) return q->attr_list; } + } return NULL; } diff --git a/ccl/ccltoken.c b/ccl/ccltoken.c index 42922cf..31c272b 100644 --- a/ccl/ccltoken.c +++ b/ccl/ccltoken.c @@ -45,7 +45,10 @@ * Europagate, 1995 * * $Log: ccltoken.c,v $ - * Revision 1.9 1998-02-11 11:53:33 adam + * Revision 1.10 1998-07-07 15:49:41 adam + * Added braces to avoid warning. + * + * Revision 1.9 1998/02/11 11:53:33 adam * Changed code so that it compiles as C++. * * Revision 1.8 1997/09/29 08:56:38 adam @@ -121,6 +124,7 @@ static int token_cmp (CCL_parser cclp, const char *kw, struct ccl_token *token) while ((cp2 = strchr (cp1, ' '))) { if (token->len == (size_t) (cp2-cp1)) + { if (cclp->ccl_case_sensitive) { if (!memcmp (cp1, token->name, token->len)) @@ -131,6 +135,7 @@ static int token_cmp (CCL_parser cclp, const char *kw, struct ccl_token *token) if (!ccl_memicmp (cp1, token->name, token->len)) return 1; } + } cp1 = cp2+1; } if (cclp->ccl_case_sensitive) 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;