X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Finitopt.c;h=01fbd5771a19f0648ac6e7aa300c381c745b75e2;hp=a83029ba989b38da3559a42743768d41d842a5be;hb=01e36a11adc97a240cc595f89280c8a619770251;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505 diff --git a/src/initopt.c b/src/initopt.c index a83029b..01fbd57 100644 --- a/src/initopt.c +++ b/src/initopt.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2005, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) Index Data * See the file LICENSE for details. - * - * $Id: initopt.c,v 1.6 2005-06-25 15:46:04 adam Exp $ */ /** @@ -47,12 +45,12 @@ static struct { int yaz_init_opt_encode(Z_Options *opt, const char *opt_str, int *error_pos) { const char *cp = opt_str; - + ODR_MASK_ZERO(opt); while (*cp) { char this_opt[42]; - int i, j; + size_t i, j; if (*cp == ' ' || *cp == ',') { cp++; @@ -95,6 +93,7 @@ void yaz_init_opt_decode(Z_Options *opt, void (*pr)(const char *name, /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab