example: declare print_usage function
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");