fixing error message -- 1635
authorChristian Grothoff <christian@grothoff.org>
Tue, 11 Jan 2011 09:54:51 +0000 (09:54 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 11 Jan 2011 09:54:51 +0000 (09:54 +0000)
src/util/getopt_helpers.c

index 746dc526727d3e9a5b288a76f379bf6be9e65ea1..5c4486b419e4405f0c0042b827f49551927482f9 100644 (file)
@@ -176,7 +176,7 @@ GNUNET_GETOPT_set_ulong (struct GNUNET_GETOPT_CommandLineProcessorContext
   if (1 != SSCANF (value, "%llu", val))
     {
       fprintf (stderr,
-               _("You must pass a number to the `%s' option.\n"), "-X");
+               _("You must pass a number to the `%s' option.\n"), option);
       return GNUNET_SYSERR;
     }
   return GNUNET_OK;
@@ -192,7 +192,7 @@ GNUNET_GETOPT_set_uint (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
   if (1 != SSCANF (value, "%u", val))
     {
       fprintf (stderr,
-               _("You must pass a number to the `%s' option.\n"), "-X");
+               _("You must pass a number to the `%s' option.\n"), option);
       return GNUNET_SYSERR;
     }
   return GNUNET_OK;