]> git.ipfire.org Git - thirdparty/git.git/blobdiff - test-parse-options.c
Add script for importing bits-and-pieces to Git.
[thirdparty/git.git] / test-parse-options.c
index a90bc3003d97f86fcc2210e340666106647eb74c..efa734b42e38d7f5a98393cd69ac0ffe10160ffc 100644 (file)
@@ -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;