summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-11-11 12:48:19 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2021-11-11 17:21:32 -0500
commiteabbee0454b74d149ba5f23f1141cc7492fb694f (patch)
tree0e20bfacb85bbaa56dfd3c1353c359efda1da808 /examples
parent8be226148f22559cb859a1c035243a7379465665 (diff)
downloadlibgit2-eabbee0454b74d149ba5f23f1141cc7492fb694f.tar.gz
example: declare print_usage function
Diffstat (limited to 'examples')
-rw-r--r--examples/add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/add.c b/examples/add.c
index 5014bd71f..4ff7c79e2 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");