aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2008-08-13 19:48:57 -0500
committerJunio C Hamano <gitster@pobox.com>2008-08-13 18:11:44 -0700
commit8caa3acf3a5f660b6b4c01fe23c05094140795d6 (patch)
tree8021d6125e003ed7d46cc483cdcffe9f40c42570
parenta96dc01e21603849cb454a311f18780c2e839f29 (diff)
downloadgit-8caa3acf3a5f660b6b4c01fe23c05094140795d6.tar.gz
git-8caa3acf3a5f660b6b4c01fe23c05094140795d6.tar.xz
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.c2
1 files changed, 1 insertions, 1 deletions
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;
}