This comment occurred in a couple of places:
/* Set an integer value, various forms. Sets to 1 on arg == NULL. */
One instance was clearly spurious, while the other was misleading.
Another resolution to this mismatch would be to add
"if (arg == NULL){*l = 1; return NULL}" somewhere, but I suspect
it may have been left out/removed because someone thought better.
return NULL;
}
-/* Set an integer value, various forms. Sets to 1 on arg == NULL. */
+/* Set an integer value, various forms.
+ FIXME: set to 1 on arg == NULL ? */
char *opt_set_intval(const char *arg, int *i)
{
long l;
{
long int l;
char *err;
-
+
err = opt_set_longval(arg, &l);
if (err)
return err;
buf[2+len] = '\0';
}
-/* Set an integer value, various forms. Sets to 1 on arg == NULL. */
+/* Show an integer value, various forms. */
void opt_show_intval(char buf[OPT_SHOW_LEN], const int *i)
{
snprintf(buf, OPT_SHOW_LEN, "%i", *i);