X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fcql2xcql.c;h=55d824dd04275f19b3b4eef8d5f22f5a8dfbb17d;hp=2dadb4c5d59577fd735b59029bfa96cf2c5a8cf1;hb=3ec3ad2bd1e248022bbb7c9d762844bef7f8a461;hpb=42f18e58ed67f77727cde23bcee44dbd32ed242a diff --git a/util/cql2xcql.c b/util/cql2xcql.c index 2dadb4c..55d824d 100644 --- a/util/cql2xcql.c +++ b/util/cql2xcql.c @@ -1,20 +1,21 @@ -/* $Id: cql2xcql.c,v 1.2 2004-03-10 16:34:31 adam Exp $ - Copyright (C) 2002-2003 - 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-2011 Index Data + * See the file LICENSE for details. + */ +#if HAVE_CONFIG_H +#include +#endif #include +#include #include +#include int main(int argc, char **argv) { CQL_parser cp; - int r; + int r = 0; const char *fname = 0; int iterations = 1; int ret; @@ -25,20 +26,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