util: split all hostname related calls into hostname-util.c

This commit is contained in:
Lennart Poettering
2015-05-18 17:10:07 +02:00
parent 3b920d78b4
commit 958b66ea16
29 changed files with 234 additions and 152 deletions
+1
View File
@@ -28,6 +28,7 @@
#include "ima-util.h"
#include "apparmor-util.h"
#include "smack-util.h"
#include "hostname-util.h"
static void test_condition_test_path(void) {
Condition *condition;
+1
View File
@@ -36,6 +36,7 @@
#include "strv.h"
#include "fileio.h"
#include "test-helper.h"
#include "hostname-util.h"
static int test_unit_file_get_set(void) {
int r;
+1
View File
@@ -35,6 +35,7 @@
#include "macro.h"
#include "path-util.h"
#include "test-helper.h"
#include "hostname-util.h"
static void test_unit_name_is_valid(void) {
assert_se(unit_name_is_valid("foo.service", UNIT_NAME_ANY));
+1
View File
@@ -38,6 +38,7 @@
#include "conf-parser.h"
#include "virt.h"
#include "process-util.h"
#include "hostname-util.h"
static void test_streq_ptr(void) {
assert_se(streq_ptr(NULL, NULL));