]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/test/test-hostname.c
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / test / test-hostname.c
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
e5907703
LP
2/***
3 This file is part of systemd.
4
5 Copyright 2010 Lennart Poettering
6
7 systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
8 under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation; either version 2.1 of the License, or
e5907703
LP
10 (at your option) any later version.
11
12 systemd is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2 15 Lesser General Public License for more details.
e5907703 16
5430f7f2 17 You should have received a copy of the GNU Lesser General Public License
e5907703
LP
18 along with systemd; If not, see <http://www.gnu.org/licenses/>.
19***/
20
e5907703
LP
21#include "hostname-setup.h"
22#include "util.h"
23
24int main(int argc, char* argv[]) {
25 int r;
26
b0193f1c
LP
27 r = hostname_setup();
28 if (r < 0)
da927ba9 29 log_error_errno(r, "hostname: %m");
e5907703
LP
30
31 return 0;
32}