util: split all hostname related calls into hostname-util.c
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user