]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/test/test-loopback.c
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / src / test / test-loopback.c
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
af5bc85d
LP
2/***
3 This file is part of systemd.
4
5 Copyright 2010 Lennart Poettering
af5bc85d
LP
6***/
7
af5bc85d 8#include <stdio.h>
cf0fbc49 9#include <string.h>
af5bc85d 10
2da780b9 11#include "log.h"
cf0fbc49 12#include "loopback-setup.h"
af5bc85d
LP
13
14int main(int argc, char* argv[]) {
15 int r;
16
2da780b9 17 log_open();
3becdb8a 18 log_set_max_level(LOG_DEBUG);
2da780b9
TG
19 log_parse_environment();
20
3cc2aff1
LP
21 r = loopback_setup();
22 if (r < 0)
35bca925 23 log_error_errno(r, "loopback: %m");
af5bc85d 24
f26b57d1 25 return r >= 0 ? EXIT_SUCCESS : EXIT_FAILURE;
af5bc85d 26}