diff options
Diffstat (limited to 'src/test/test-loopback.c')
-rw-r--r-- | src/test/test-loopback.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/test/test-loopback.c b/src/test/test-loopback.c index c03bda4382..7b67337331 100644 --- a/src/test/test-loopback.c +++ b/src/test/test-loopback.c @@ -1,5 +1,3 @@ -/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ - /*** This file is part of systemd. @@ -19,11 +17,11 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <string.h> #include <stdio.h> +#include <string.h> -#include "loopback-setup.h" #include "log.h" +#include "loopback-setup.h" int main(int argc, char* argv[]) { int r; @@ -31,8 +29,9 @@ int main(int argc, char* argv[]) { log_open(); log_parse_environment(); - if ((r = loopback_setup()) < 0) - fprintf(stderr, "loopback: %s\n", strerror(-r)); + r = loopback_setup(); + if (r < 0) + log_error("loopback: %m"); - return 0; + return r >= 0 ? EXIT_SUCCESS : EXIT_FAILURE; } |