summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 69461122..9db3d9aa 100644
--- a/src/main.c
+++ b/src/main.c
@@ -19,7 +19,6 @@
#include <sys/types.h>
#include <nftables/libnftables.h>
-#include <nftables.h>
#include <utils.h>
#include <cli.h>
@@ -307,7 +306,7 @@ int main(int argc, char * const *argv)
if (buf == NULL) {
fprintf(stderr, "%s:%u: Memory allocation failure\n",
__FILE__, __LINE__);
- exit(NFT_EXIT_NOMEM);
+ exit(EXIT_FAILURE);
}
for (i = optind; i < argc; i++) {
strcat(buf, argv[i]);