aboutsummaryrefslogtreecommitdiff
path: root/src/util/getopt.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-15 00:49:26 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-15 00:49:26 +0000
commit1f09f4f7716db5939ec1c9a278b5661616dd72d6 (patch)
treeff52f060245b574aace08d5db5016c22b56a7876 /src/util/getopt.c
parent720afac61536fbb212c0010f31764704c12aab0f (diff)
downloadgnunet-1f09f4f7716db5939ec1c9a278b5661616dd72d6.tar.gz
gnunet-1f09f4f7716db5939ec1c9a278b5661616dd72d6.zip
-help seaspider some more
Diffstat (limited to 'src/util/getopt.c')
-rw-r--r--src/util/getopt.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/util/getopt.c b/src/util/getopt.c
index 169949821..572e534c5 100644
--- a/src/util/getopt.c
+++ b/src/util/getopt.c
@@ -202,9 +202,8 @@ char *
202getenv (); 202getenv ();
203 203
204static char * 204static char *
205my_index (str, chr) 205my_index (const char *str,
206 const char *str; 206 int chr)
207 int chr;
208{ 207{
209 while (*str) 208 while (*str)
210 { 209 {
@@ -294,8 +293,7 @@ exchange (char **);
294#endif 293#endif
295 294
296static void 295static void
297exchange (argv) 296exchange (char **argv)
298 char **argv;
299{ 297{
300 int bottom = first_nonopt; 298 int bottom = first_nonopt;
301 int middle = last_nonopt; 299 int middle = last_nonopt;
@@ -381,10 +379,9 @@ static const char *
381_getopt_initialize (int, char *const *, const char *); 379_getopt_initialize (int, char *const *, const char *);
382#endif 380#endif
383static const char * 381static const char *
384_getopt_initialize (argc, argv, optstring) 382_getopt_initialize (int argc,
385 int argc; 383 char *const *argv,
386 char *const *argv; 384 const char *optstring)
387 const char *optstring;
388{ 385{
389 /* Start processing options with ARGV-element 1 (since ARGV-element 0 386 /* Start processing options with ARGV-element 1 (since ARGV-element 0
390 * is the program name); the sequence of previously skipped 387 * is the program name); the sequence of previously skipped