X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fcql2xcql.c;h=55d824dd04275f19b3b4eef8d5f22f5a8dfbb17d;hb=3e45202a276daf769ce4727bc47147a1e669d4b1;hp=536e0197495d05dd65dd81bda1fabb301e202bc6;hpb=fa1dff894130765cb4a8fed41c42fc7125702c9c;p=yaz-moved-to-github.git diff --git a/util/cql2xcql.c b/util/cql2xcql.c index 536e019..55d824d 100644 --- a/util/cql2xcql.c +++ b/util/cql2xcql.c @@ -1,11 +1,10 @@ -/* $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-2011 Index Data + * See the file LICENSE for details. + */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -16,7 +15,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 +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