X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fcclqfile.c;h=7583610f764c6a23f565785e739f3cdd3e1ca41a;hp=4906af899ba30961025086ff7a47e953fc153975;hb=3498164f9058a807e5e25de88ecce61b97df2d14;hpb=65371f5d5f265a4c5ee43f784b2d8a6db1e0774a diff --git a/src/cclqfile.c b/src/cclqfile.c index 4906af8..7583610 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,7 +79,7 @@ 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; @@ -241,7 +239,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 +308,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