[PATCH nft 2/3] main: replace NFT_EXIT_NOMEM by EXIT_FAILURE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The main.c file always uses either EXIT_FAILURE or EXIT_SUCCESS, replace
this.

Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
---
 src/main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index 694611224d07..9db3d9aa0a15 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]);
-- 
2.11.0




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux