getopt_helpers.c   getopt_helpers.c 
skipping to change at line 248 skipping to change at line 248
* @return GNUNET_OK if parsing the value worked * @return GNUNET_OK if parsing the value worked
*/ */
int int
GNUNET_GETOPT_set_ulong (struct GNUNET_GETOPT_CommandLineProcessorContext * ctx, GNUNET_GETOPT_set_ulong (struct GNUNET_GETOPT_CommandLineProcessorContext * ctx,
void *scls, const char *option, const char *value) void *scls, const char *option, const char *value)
{ {
unsigned long long *val = scls; unsigned long long *val = scls;
if (1 != SSCANF (value, "%llu", val)) if (1 != SSCANF (value, "%llu", val))
{ {
fprintf (stderr, _("You must pass a number to the `%s' option.\n"), opt ion); FPRINTF (stderr, _("You must pass a number to the `%s' option.\n"), opt ion);
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
return GNUNET_OK; return GNUNET_OK;
} }
/** /**
* Set an option of type 'unsigned int' from the command line. * Set an option of type 'unsigned int' from the command line.
* A pointer to this function should be passed as part of the * A pointer to this function should be passed as part of the
* 'struct GNUNET_GETOPT_CommandLineOption' array to initialize options * 'struct GNUNET_GETOPT_CommandLineOption' array to initialize options
* of this type. It should be followed by a pointer to a value of * of this type. It should be followed by a pointer to a value of
skipping to change at line 275 skipping to change at line 275
* @return GNUNET_OK if parsing the value worked * @return GNUNET_OK if parsing the value worked
*/ */
int int
GNUNET_GETOPT_set_uint (struct GNUNET_GETOPT_CommandLineProcessorContext *c tx, GNUNET_GETOPT_set_uint (struct GNUNET_GETOPT_CommandLineProcessorContext *c tx,
void *scls, const char *option, const char *value) void *scls, const char *option, const char *value)
{ {
unsigned int *val = scls; unsigned int *val = scls;
if (1 != SSCANF (value, "%u", val)) if (1 != SSCANF (value, "%u", val))
{ {
fprintf (stderr, _("You must pass a number to the `%s' option.\n"), opt ion); FPRINTF (stderr, _("You must pass a number to the `%s' option.\n"), opt ion);
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
return GNUNET_OK; return GNUNET_OK;
} }
/* end of getopt_helpers.c */ /* end of getopt_helpers.c */
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/