summaryrefslogtreecommitdiff
path: root/test-parse-options.c
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2008-08-14 00:48:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-08-14 01:11:44 (GMT)
commit8caa3acf3a5f660b6b4c01fe23c05094140795d6 (patch)
tree8021d6125e003ed7d46cc483cdcffe9f40c42570 /test-parse-options.c
parenta96dc01e21603849cb454a311f18780c2e839f29 (diff)
downloadgit-8caa3acf3a5f660b6b4c01fe23c05094140795d6.zip
git-8caa3acf3a5f660b6b4c01fe23c05094140795d6.tar.gz
git-8caa3acf3a5f660b6b4c01fe23c05094140795d6.tar.bz2
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>
Diffstat (limited to 'test-parse-options.c')
-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 6e18083..61d2c39 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;
}