From 8caa3acf3a5f660b6b4c01fe23c05094140795d6 Mon Sep 17 00:00:00 2001 From: Brandon Casey Date: Wed, 13 Aug 2008 19:48:57 -0500 Subject: [PATCH] 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 --- test-parse-options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2