X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fcql2xcql.c;h=23afa1a501ec63d0221d50c10fbc72f2de0c80b9;hb=4c345cce4f4917ea0428c084a2d55b83d8e92d76;hp=2dadb4c5d59577fd735b59029bfa96cf2c5a8cf1;hpb=42f18e58ed67f77727cde23bcee44dbd32ed242a;p=yaz-moved-to-github.git diff --git a/util/cql2xcql.c b/util/cql2xcql.c index 2dadb4c..23afa1a 100644 --- a/util/cql2xcql.c +++ b/util/cql2xcql.c @@ -1,20 +1,18 @@ -/* $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-2010 Index Data + * See the file LICENSE for details. + */ #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 +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