X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=test-parse-options.c;h=efa734b42e38d7f5a98393cd69ac0ffe10160ffc;hb=69fb8283937a18a031aeef12ea2a530c8ccf3e83;hp=a90bc3003d97f86fcc2210e340666106647eb74c;hpb=0a17b2cd7ebc0beeab6121d96ce812f22994cc39;p=git.git diff --git a/test-parse-options.c b/test-parse-options.c index a90bc3003..efa734b42 100644 --- a/test-parse-options.c +++ b/test-parse-options.c @@ -9,7 +9,7 @@ static int verbose = 0, dry_run = 0, quiet = 0; static char *string = NULL; static char *file = NULL; -int length_callback(const struct option *opt, const char *arg, int unset) +static int length_callback(const struct option *opt, const char *arg, int unset) { printf("Callback: \"%s\", %d\n", (arg ? arg : "not set"), unset); @@ -20,7 +20,7 @@ int length_callback(const struct option *opt, const char *arg, int unset) return 0; } -int number_callback(const struct option *opt, const char *arg, int unset) +static int number_callback(const struct option *opt, const char *arg, int unset) { *(int *)opt->value = strtol(arg, NULL, 10); return 0;