X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fcclqfile.c;h=a2bb33610659d3e57263d9573351e1eed6df7a08;hp=4906af899ba30961025086ff7a47e953fc153975;hb=df84e4897abc4565fe11adead30b99d9634b41b1;hpb=65371f5d5f265a4c5ee43f784b2d8a6db1e0774a diff --git a/src/cclqfile.c b/src/cclqfile.c index 4906af8..a2bb336 100644 --- a/src/cclqfile.c +++ b/src/cclqfile.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2008, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. - * - * $Id: cclqfile.c,v 1.12 2008-01-09 21:32:28 adam Exp $ */ /** * \file cclqfile.c @@ -81,14 +79,15 @@ int ccl_qual_field2(CCL_bibset bibset, const char *cp, const char *qual_name, /* lead is first of a list of qualifier aliaeses */ /* qualifier alias: q1 q2 ... */ char *qlist[10]; - int i = 0; + size_t i = 0; qlist[i++] = lead_str; - while ((t=yaz_tok_move(tp)) == YAZ_TOK_STRING) + while (t == YAZ_TOK_STRING) { if (i < sizeof(qlist)/sizeof(*qlist)-1) qlist[i++] = xstrdup(yaz_tok_parse_string(tp)); + t = yaz_tok_move(tp); } qlist[i] = 0; yaz_tok_parse_destroy(tp); @@ -241,7 +240,7 @@ void ccl_qual_buf(CCL_bibset bibset, const char *buf) while (1) { const char *cp2 = cp1; - int len; + size_t len; while (*cp2 && !strchr("\r\n", *cp2)) cp2++; len = cp2 - cp1; @@ -310,6 +309,7 @@ int ccl_qual_fname (CCL_bibset bibset, const char *fname) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab