From: Pablo Neira Ayuso Date: Thu, 4 Jul 2019 22:39:17 +0000 (+0200) Subject: main: replace NFT_EXIT_NOMEM by EXIT_FAILURE X-Git-Tag: v0.9.2~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da275185bb1b56494962f502b43e876519331bc5;p=thirdparty%2Fnftables.git main: replace NFT_EXIT_NOMEM by EXIT_FAILURE The main.c file always uses either EXIT_FAILURE or EXIT_SUCCESS, replace this. Signed-off-by: Pablo Neira Ayuso --- 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 #include -#include #include #include @@ -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]);