test-parse-options: use appropriate cast in length_callback
OPT_CALLBACK() is passed &integer which is now an "int" rather than "unsigned long". Update the length_callback function. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
a96dc01e21
commit
8caa3acf3a
@ -15,7 +15,7 @@ int length_callback(const struct option *opt, const char *arg, int unset)
|
|||||||
if (unset)
|
if (unset)
|
||||||
return 1; /* do not support unset */
|
return 1; /* do not support unset */
|
||||||
|
|
||||||
*(unsigned long *)opt->value = strlen(arg);
|
*(int *)opt->value = strlen(arg);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user