From: Adam Dickmeiss Date: Sun, 15 Sep 2002 20:41:01 +0000 (+0000) Subject: Remove unnecessary ; X-Git-Tag: YAZ.1.9.1~37 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=44b9f906bd7b0e1df901d37295ce46ed78456063;p=yaz-moved-to-github.git Remove unnecessary ; --- diff --git a/client/client.c b/client/client.c index 66ee3e9..9856550 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2002, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.167 2002-09-10 10:20:27 ja7 Exp $ + * $Id: client.c,v 1.168 2002-09-15 20:41:01 adam Exp $ */ #include @@ -129,8 +129,8 @@ const char* query_type_as_string(QueryType q) case QueryType_CCL2RPN: return "CCL -> RPN (RPN sent to server)"; default: return "unknown Query type internal yaz-client error"; - }; -}; + } +} void do_hex_dump(char* buf,int len) @@ -143,11 +143,11 @@ void do_hex_dump(char* buf,int len) for(x=0 ; i+x=maxOtherInfosSupported) { printf("Error otherinfo index to large (%d>%d)\n",otherinfoNo,maxOtherInfosSupported); - }; + } extraOtherInfos[otherinfoNo].oidval = -1; if(extraOtherInfos[otherinfoNo].value) free(extraOtherInfos[otherinfoNo].value); return 0; - }; + } if (sscan_res<3) { printf("Error in set_otherinfo command \n"); return 0; @@ -2766,20 +2766,20 @@ int cmd_set_otherinfo(char* args) if(otherinfoNo>=maxOtherInfosSupported) { printf("Error otherinfo index to large (%d>%d)\n",otherinfoNo,maxOtherInfosSupported); - }; + } oidval = oid_getvalbyname (oid); if(oidval == -1 ) { printf("Error in set_otherinfo command unknown oid %s \n",oid); return 0; - }; + } extraOtherInfos[otherinfoNo].oidval = oidval; if(extraOtherInfos[otherinfoNo].value) free(extraOtherInfos[otherinfoNo].value); extraOtherInfos[otherinfoNo].value = strdup(otherinfoString); return 0; -}; +} int cmd_list_otherinfo(char* args) { @@ -2790,7 +2790,7 @@ int cmd_list_otherinfo(char* args) if( i >= maxOtherInfosSupported ) { printf("Error otherinfo index to large (%d>%d)\n",i,maxOtherInfosSupported); return 0; - }; + } if(extraOtherInfos[i].oidval != -1) printf(" otherinfo %d %s %s\n",i,yaz_z3950_oid_value_to_str(extraOtherInfos[i].oidval,CLASS_RECSYN), extraOtherInfos[i].value); @@ -2799,11 +2799,11 @@ int cmd_list_otherinfo(char* args) for(i=0; i= maxOtherInfosSupported ) { printf("Error otherinfo index to large (%d>%d)\n",otherinfoNo,maxOtherInfosSupported); return 0; - }; + } if(extraOtherInfos[otherinfoNo].oidval != -1) { /* only clear if set. */ extraOtherInfos[otherinfoNo].oidval=-1; free(extraOtherInfos[otherinfoNo].value); - }; + } } else { int i; @@ -2895,11 +2895,11 @@ int cmd_clear_otherinfo(char* args) if (extraOtherInfos[i].oidval!=-1 ) { extraOtherInfos[i].oidval=-1; free(extraOtherInfos[i].value); - }; - }; - }; + } + } + } return 0; -}; +} static int cmd_help (char *line);