]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/tests/aa.c
coccinelle: use standard exit identifiers
[mirror_lxc.git] / src / tests / aa.c
index 7a83e8e17fab2defff72424dc3760f43638041a8..69808b6f3b8a5bb3167a436f6302c5c41b93cfcb 100644 (file)
@@ -154,7 +154,7 @@ int main(int argc, char *argv[])
        c = lxc_container_new(MYNAME, NULL);
        if (!c) {
                fprintf(stderr, "%s: %d: failed to load first container\n", __FILE__, __LINE__);
-               exit(1);
+               exit(EXIT_FAILURE);
        }
 
        if (c->is_defined(c)) {
@@ -190,9 +190,9 @@ int main(int argc, char *argv[])
        c->stop(c);
 
        try_to_remove();
-       exit(0);
+       exit(EXIT_SUCCESS);
 
 err:
        try_to_remove();
-       exit(1);
+       exit(EXIT_FAILURE);
 }