From da275185bb1b56494962f502b43e876519331bc5 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 5 Jul 2019 00:39:17 +0200 Subject: 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 --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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]); -- cgit v1.2.3