aboutsummaryrefslogtreecommitdiffgithub
diff options
context:
space:
mode:
-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;
}