qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 01/26] coccinelle: use exit(EXIT_SUCCESS) and exit(E


From: Laurent Vivier
Subject: [Qemu-devel] [PATCH 01/26] coccinelle: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
Date: Fri, 16 Sep 2016 15:55:52 +0200

Signed-off-by: Laurent Vivier <address@hidden>
---
 scripts/coccinelle/exit.cocci | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 scripts/coccinelle/exit.cocci

diff --git a/scripts/coccinelle/exit.cocci b/scripts/coccinelle/exit.cocci
new file mode 100644
index 0000000..73386c0
--- /dev/null
+++ b/scripts/coccinelle/exit.cocci
@@ -0,0 +1,12 @@
+// replace exit(0) by exit(EXIT_SUCCESS)
+//         exit(1) by exit(EXIT_FAILURE)
+
+@@
+@@
+(
+- exit(0)
++ exit(EXIT_SUCCESS)
+|
+- exit(1)
++ exit(EXIT_FAILURE)
+)
-- 
2.5.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]