From a45d7127e716399ea0ff27b32d5247ee877d1ab4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 22 Dec 2017 13:24:40 +0100 Subject: tree-wide: use EXIT_SUCCESS/EXIT_FAILURE in exit() where we can --- coccinelle/exit-0.cocci | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 coccinelle/exit-0.cocci (limited to 'coccinelle/exit-0.cocci') diff --git a/coccinelle/exit-0.cocci b/coccinelle/exit-0.cocci new file mode 100644 index 0000000000..8b81600579 --- /dev/null +++ b/coccinelle/exit-0.cocci @@ -0,0 +1,16 @@ +@@ +@@ +- exit(0); ++ exit(EXIT_SUCCESS); +@@ +@@ +- _exit(0); ++ _exit(EXIT_SUCCESS); +@@ +@@ +- exit(1); ++ exit(EXIT_FAILURE); +@@ +@@ +- _exit(1); ++ _exit(EXIT_FAILURE); -- cgit v1.2.1