summaryrefslogtreecommitdiff
path: root/src/hostname
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-05-18 17:10:07 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-18 17:10:07 +0200
commit958b66ea16deddd794b3a52643bd44633e165ead (patch)
tree22e30bbfe7e3e81b12fe37cc5754342ec513e92c /src/hostname
parent3b920d78b4a58dd054917821734cf0aefc6232d0 (diff)
util: split all hostname related calls into hostname-util.c
Diffstat (limited to 'src/hostname')
-rw-r--r--src/hostname/hostnamectl.c4
-rw-r--r--src/hostname/hostnamed.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c
index 5218b41b41..69ecd61f60 100644
--- a/src/hostname/hostnamectl.c
+++ b/src/hostname/hostnamectl.c
@@ -26,13 +26,13 @@
#include <string.h>
#include "sd-bus.h"
-
+#include "sd-id128.h"
+#include "hostname-util.h"
#include "bus-util.h"
#include "bus-error.h"
#include "util.h"
#include "spawn-polkit-agent.h"
#include "build.h"
-#include "sd-id128.h"
#include "architecture.h"
static bool arg_ask_password = true;
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c
index ddf7b8f1bd..ab9ddc706a 100644
--- a/src/hostname/hostnamed.c
+++ b/src/hostname/hostnamed.c
@@ -33,6 +33,7 @@
#include "bus-util.h"
#include "event-util.h"
#include "selinux-util.h"
+#include "hostname-util.h"
#define VALID_DEPLOYMENT_CHARS (DIGITS LETTERS "-.:")