aboutsummaryrefslogtreecommitdiff
path: root/src/util/getopt.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-28 09:32:00 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-28 09:32:00 +0000
commite83f734557f26abbb33ef1093767ec5c24a4bf56 (patch)
tree6a8733e031205a2c41f146ffd304c6400e3c51e6 /src/util/getopt.c
parentd84be4e128a68baed1631736066f010c8dcf8643 (diff)
downloadgnunet-e83f734557f26abbb33ef1093767ec5c24a4bf56.tar.gz
gnunet-e83f734557f26abbb33ef1093767ec5c24a4bf56.zip
-simplify code structure for monkey
Diffstat (limited to 'src/util/getopt.c')
-rw-r--r--src/util/getopt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/getopt.c b/src/util/getopt.c
index c37272442..415bb4b6b 100644
--- a/src/util/getopt.c
+++ b/src/util/getopt.c
@@ -351,7 +351,7 @@ _getopt_initialize (int argc,
351 351
352 return optstring; 352 return optstring;
353} 353}
354 354
355/* Scan elements of ARGV (whose length is ARGC) for option characters 355/* Scan elements of ARGV (whose length is ARGC) for option characters
356 given in OPTSTRING. 356 given in OPTSTRING.
357 357
@@ -767,8 +767,7 @@ GN_getopt_internal (int argc, char *const *argv, const char *optstring,
767 else 767 else
768 { 768 {
769 if (GNopterr) 769 if (GNopterr)
770 FPRINTF (stderr, _("\ 770 FPRINTF (stderr, _("%s: option `-W %s' does not allow an argument\n"), argv[0], pfound->name);
771%s: option `-W %s' does not allow an argument\n"), argv[0], pfound->name);
772 771
773 nextchar += strlen (nextchar); 772 nextchar += strlen (nextchar);
774 return '?'; 773 return '?';