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>
Brandon Casey committed
Aug 13, 2008 at 19:48 UTC
8caa3acf3a5f660b6b4c01fe23c05094140795d6
1 file changed
+1
-1
test-parse-options.c
+1
-1
@@ -15,7 +15,7 @@ int length_callback(const struct option *opt, const char *arg, int unset)
15
if (unset)
16
return 1; /* do not support unset */
17
18
- *(unsigned long *)opt->value = strlen(arg);
18
+ *(int *)opt->value = strlen(arg);
19
return 0;
20
}
21