Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
[yaz-moved-to-github.git] / src / options.c
index 88c1c92..70d6219 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2010 Index Data
  * See the file LICENSE for details.
  */
 /**
@@ -15,7 +15,7 @@
 #include <yaz/options.h>
 
 static int arg_no = 1;
-static int arg_off = 0;
+static size_t arg_off = 0;
 
 int options (const char *desc, char **argv, int argc, char **arg)
 {
@@ -66,7 +66,7 @@ int options (const char *desc, char **argv, int argc, char **arg)
         }
         if (desc[i] == ':')
         {       /* option with string argument */
-                type = desc[i++];
+            type = desc[i++];
         }
         if (desc_char == ch)
         { 
@@ -107,6 +107,7 @@ int options (const char *desc, char **argv, int argc, char **arg)
 /*
  * Local variables:
  * c-basic-offset: 4
+ * c-file-style: "Stroustrup"
  * indent-tabs-mode: nil
  * End:
  * vim: shiftwidth=4 tabstop=8 expandtab