summaryrefslogtreecommitdiff
path: root/examples/network
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network')
-rw-r--r--examples/network/.gitignore1
-rw-r--r--examples/network/git2.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/network/.gitignore b/examples/network/.gitignore
new file mode 100644
index 000000000..1b48e66ed
--- /dev/null
+++ b/examples/network/.gitignore
@@ -0,0 +1 @@
+/git2
diff --git a/examples/network/git2.c b/examples/network/git2.c
index 0468c8ace..def56e83b 100644
--- a/examples/network/git2.c
+++ b/examples/network/git2.c
@@ -44,7 +44,8 @@ int main(int argc, char **argv)
int i, error;
if (argc < 2) {
- fprintf(stderr, "usage: %s <cmd> [repo]", argv[0]);
+ fprintf(stderr, "usage: %s <cmd> [repo]\n", argv[0]);
+ exit(EXIT_FAILURE);
}
for (i = 0; commands[i].name != NULL; ++i) {
@@ -53,5 +54,5 @@ int main(int argc, char **argv)
}
fprintf(stderr, "Command not found: %s\n", argv[1]);
-
+ return 1;
}