aboutsummaryrefslogtreecommitdiff
path: root/src/util/getopt_helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/getopt_helpers.c')
-rw-r--r--src/util/getopt_helpers.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/util/getopt_helpers.c b/src/util/getopt_helpers.c
index 80d1037bb..f53441508 100644
--- a/src/util/getopt_helpers.c
+++ b/src/util/getopt_helpers.c
@@ -184,7 +184,7 @@ format_help (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
184 184
185 if (0 != pd->is_gnu) 185 if (0 != pd->is_gnu)
186 printf ("General help using GNU software: http://www.gnu.org/gethelp/\n"); 186 printf ("General help using GNU software: http://www.gnu.org/gethelp/\n");
187 187
188 return GNUNET_NO; 188 return GNUNET_NO;
189} 189}
190 190
@@ -544,9 +544,9 @@ set_ulong (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
544 char dummy[2]; 544 char dummy[2];
545 545
546 (void) ctx; 546 (void) ctx;
547 if (1 != SSCANF (value, "%llu%1s", val, dummy)) 547 if (1 != sscanf (value, "%llu%1s", val, dummy))
548 { 548 {
549 FPRINTF (stderr, 549 fprintf (stderr,
550 _ ("You must pass a number to the `%s' option.\n"), 550 _ ("You must pass a number to the `%s' option.\n"),
551 option); 551 option);
552 return GNUNET_SYSERR; 552 return GNUNET_SYSERR;
@@ -607,7 +607,7 @@ set_relative_time (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
607 (void) ctx; 607 (void) ctx;
608 if (GNUNET_OK != GNUNET_STRINGS_fancy_time_to_relative (value, val)) 608 if (GNUNET_OK != GNUNET_STRINGS_fancy_time_to_relative (value, val))
609 { 609 {
610 FPRINTF (stderr, 610 fprintf (stderr,
611 _ ("You must pass relative time to the `%s' option.\n"), 611 _ ("You must pass relative time to the `%s' option.\n"),
612 option); 612 option);
613 return GNUNET_SYSERR; 613 return GNUNET_SYSERR;
@@ -669,7 +669,7 @@ set_absolute_time (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
669 (void) ctx; 669 (void) ctx;
670 if (GNUNET_OK != GNUNET_STRINGS_fancy_time_to_absolute (value, val)) 670 if (GNUNET_OK != GNUNET_STRINGS_fancy_time_to_absolute (value, val))
671 { 671 {
672 FPRINTF (stderr, 672 fprintf (stderr,
673 _ ("You must pass absolute time to the `%s' option.\n"), 673 _ ("You must pass absolute time to the `%s' option.\n"),
674 option); 674 option);
675 return GNUNET_SYSERR; 675 return GNUNET_SYSERR;
@@ -732,15 +732,15 @@ set_uint (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
732 (void) ctx; 732 (void) ctx;
733 if ('-' == *value) 733 if ('-' == *value)
734 { 734 {
735 FPRINTF (stderr, 735 fprintf (stderr,
736 _ ( 736 _ (
737 "Your input for the '%s' option has to be a non negative number \n"), 737 "Your input for the '%s' option has to be a non negative number \n"),
738 option); 738 option);
739 return GNUNET_SYSERR; 739 return GNUNET_SYSERR;
740 } 740 }
741 if (1 != SSCANF (value, "%u%1s", val, dummy)) 741 if (1 != sscanf (value, "%u%1s", val, dummy))
742 { 742 {
743 FPRINTF (stderr, 743 fprintf (stderr,
744 _ ("You must pass a number to the `%s' option.\n"), 744 _ ("You must pass a number to the `%s' option.\n"),
745 option); 745 option);
746 return GNUNET_SYSERR; 746 return GNUNET_SYSERR;
@@ -801,16 +801,16 @@ set_uint16 (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
801 char dummy[2]; 801 char dummy[2];
802 802
803 (void) ctx; 803 (void) ctx;
804 if (1 != SSCANF (value, "%u%1s", &v, dummy)) 804 if (1 != sscanf (value, "%u%1s", &v, dummy))
805 { 805 {
806 FPRINTF (stderr, 806 fprintf (stderr,
807 _ ("You must pass a number to the `%s' option.\n"), 807 _ ("You must pass a number to the `%s' option.\n"),
808 option); 808 option);
809 return GNUNET_SYSERR; 809 return GNUNET_SYSERR;
810 } 810 }
811 if (v > UINT16_MAX) 811 if (v > UINT16_MAX)
812 { 812 {
813 FPRINTF (stderr, 813 fprintf (stderr,
814 _ ("You must pass a number below %u to the `%s' option.\n"), 814 _ ("You must pass a number below %u to the `%s' option.\n"),
815 (unsigned int) UINT16_MAX, 815 (unsigned int) UINT16_MAX,
816 option); 816 option);