diff options
author | Brandon Casey <casey@nrlssc.navy.mil> | 2008-08-14 04:48:57 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-14 05:11:44 +0400 |
commit | 8caa3acf3a5f660b6b4c01fe23c05094140795d6 (patch) | |
tree | 8021d6125e003ed7d46cc483cdcffe9f40c42570 | |
parent | a96dc01e21603849cb454a311f18780c2e839f29 (diff) |
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>
-rw-r--r-- | test-parse-options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-parse-options.c b/test-parse-options.c index 6e18083a7d..61d2c39814 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; } |