summaryrefslogtreecommitdiffstats
path: root/src/udev/test-udev.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-04-08 17:03:17 +0200
committerKay Sievers <kay@vrfy.org>2012-04-08 17:03:17 +0200
commit1c0f62e37b0e775df7cb6121bc6ae64d1d885d3b (patch)
tree88befda8017dd48b5ff26992e15a12eb8efc77cb /src/udev/test-udev.c
parentudev: remove support for /lib/udev/devices/; tmpfiles should be used (diff)
downloadsystemd-1c0f62e37b0e775df7cb6121bc6ae64d1d885d3b.tar.xz
systemd-1c0f62e37b0e775df7cb6121bc6ae64d1d885d3b.zip
udev: fix test-udev binary
Diffstat (limited to '')
-rw-r--r--src/udev/test-udev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/udev/test-udev.c b/src/udev/test-udev.c
index 8cf07cc578..53ecd95bcf 100644
--- a/src/udev/test-udev.c
+++ b/src/udev/test-udev.c
@@ -48,7 +48,7 @@ int main(int argc, char *argv[])
udev = udev_new();
if (udev == NULL)
- exit(1);
+ exit(EXIT_FAILURE);
log_debug("version %s\n", VERSION);
udev_selinux_init(udev);
@@ -116,6 +116,6 @@ out:
udev_selinux_exit(udev);
udev_unref(udev);
if (err != 0)
- return 1;
- return 0;
+ return EXIT_FAILURE;
+ return EXIT_SUCCESS;
}