projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add new function nmem_strsplitx.
[yaz-moved-to-github.git]
/
src
/
initopt.c
diff --git
a/src/initopt.c
b/src/initopt.c
index
a83029b
..
4d147db
100644
(file)
--- 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) 1995-2011 Index Data
* See the file LICENSE for details.
* See the file LICENSE for details.
- *
- * $Id: initopt.c,v 1.6 2005-06-25 15:46:04 adam Exp $
*/
/**
*/
/**
@@
-52,7
+50,7
@@
int yaz_init_opt_encode(Z_Options *opt, const char *opt_str, int *error_pos)
while (*cp)
{
char this_opt[42];
while (*cp)
{
char this_opt[42];
- int i, j;
+ size_t i, j;
if (*cp == ' ' || *cp == ',')
{
cp++;
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
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab