Commit eabbee0454b74d149ba5f23f1141cc7492fb694f

Edward Thomson 2021-11-11T12:48:19

example: declare print_usage function

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/examples/add.c b/examples/add.c
index 5014bd7..4ff7c79 100644
--- a/examples/add.c
+++ b/examples/add.c
@@ -110,7 +110,7 @@ int print_matched_cb(const char *path, const char *matched_pathspec, void *paylo
 	return ret;
 }
 
-void print_usage(void)
+static void print_usage(void)
 {
 	fprintf(stderr, "usage: add [options] [--] file-spec [file-spec] [...]\n\n");
 	fprintf(stderr, "\t-n, --dry-run    dry run\n");