X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fcql2xcql.c;h=cee264668d00647fec9164e1309b311f3851ea1a;hp=536e0197495d05dd65dd81bda1fabb301e202bc6;hb=d940392c53c32ccf76fb287cc5b997b9e921a431;hpb=fa1dff894130765cb4a8fed41c42fc7125702c9c diff --git a/util/cql2xcql.c b/util/cql2xcql.c index 536e019..cee2646 100644 --- a/util/cql2xcql.c +++ b/util/cql2xcql.c @@ -1,11 +1,7 @@ -/* $Id: cql2xcql.c,v 1.4 2004-03-16 13:22:16 adam Exp $ - Copyright (C) 2002-2004 - Index Data Aps - -This file is part of the YAZ toolkit. - -See the file LICENSE. -*/ +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 Index Data + * See the file LICENSE for details. + */ #include #include @@ -16,7 +12,7 @@ See the file LICENSE. int main(int argc, char **argv) { CQL_parser cp; - int r; + int r = 0; const char *fname = 0; int iterations = 1; int ret; @@ -27,20 +23,20 @@ int main(int argc, char **argv) switch (ret) { case 0: - fname = arg; + fname = arg; break; - case 'n': - iterations = atoi(arg); - break; - } + case 'n': + iterations = atoi(arg); + break; + } } cp = cql_parser_create(); if (fname) { - int i; - for (i = 0; i