HALF ECHO LEARN / REFERENCE COLLECTION
v262.2coccinelle/exit-0.cocci
Git blob: ff3d965a9d07afc7df30e346305cd8b51bab13a2
Lines 1–18 of 18
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
@@
- exit(0);
+ exit(EXIT_SUCCESS);
@@
@@
- _exit(0);
+ _exit(EXIT_SUCCESS);
@@
@@
- exit(1);
+ exit(EXIT_FAILURE);
@@
@@
- _exit(1);
+ _exit(EXIT_FAILURE);