From: Brandon Casey Date: Thu, 14 Aug 2008 00:48:57 +0000 (-0500) Subject: test-parse-options: use appropriate cast in length_callback X-Git-Tag: v1.6.0~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8caa3acf3a5f660b6b4c01fe23c05094140795d6;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/test-parse-options.c b/test-parse-options.c index 6e18083a7..61d2c3981 100644 --- a/test-parse-options.c +++ b/test-parse-options.c @@ -15,7 +15,7 @@ int length_callback(const struct option *opt, const char *arg, int unset) if (unset) return 1; /* do not support unset */ - *(unsigned long *)opt->value = strlen(arg); + *(int *)opt->value = strlen(arg); return 0; }