aboutsummaryrefslogtreecommitdiffgithub
diff options
context:
space:
mode:
authorAustin Adams <git@austinjadams.com>2015-10-24 13:53:06 -0400
committerAustin Adams <git@austinjadams.com>2015-10-24 13:53:06 -0400
commit91169ec0ec95566e4450e82debd6543605ab67ae (patch)
tree2458a91161f10ddd7ed7157371c2d85ba917a28b
parenta197cbce85fc23383ea94c5245df7a5147492617 (diff)
downloadnsdo-91169ec0ec95566e4450e82debd6543605ab67ae.tar.gz
nsdo-91169ec0ec95566e4450e82debd6543605ab67ae.tar.xz
remove -Werror from Makefile and return 0 in main
-rw-r--r--Makefile2
-rw-r--r--nsdo.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7705b6e..144783a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS ?= -Wall -Werror -O3
+CFLAGS ?= -Wall -O2
# if you're building a system package, you should probably set these to
# /usr, /usr/share/bash-completion/completions, and your package dir
PREFIX ?= /usr/local
diff --git a/nsdo.c b/nsdo.c
index c762b0c..fbc31e5 100644
--- a/nsdo.c
+++ b/nsdo.c
@@ -39,7 +39,8 @@
#define PROGRAM "nsdo"
enum {
- EXIT_BAD_INVOCATION = 1,
+ EXIT_OK,
+ EXIT_BAD_INVOCATION,
EXIT_ALREADY_IN_NAMESPACE,
EXIT_COULDNT_SETGUID,
EXIT_BAD_NETNS,
@@ -208,4 +209,6 @@ int main(int argc, char **argv) {
if (!run(argv[ARG_CMD], argv+ARG_CMD))
return EXIT_FAILED_EXEC;
+
+ return EXIT_OK;
}