about summary refs log tree commit diff
path: root/src/nm-hostname-manager.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2018-09-08 17:44:52 +0200
committerMichael Biebl <biebl@debian.org>2018-09-08 17:44:52 +0200
commitd8cad4490d54acb162ad218a8a682ab379bb8bcc (patch)
tree140abd545d62a1b0144be27c93ad8edb021e4311 /src/nm-hostname-manager.c
parente3bc109cd0eb97346c448f591af518d85dbee21b (diff)
parent8f7a3cbbdd0c0a48277c341dd3a8ec8743ae9735 (diff)
Update upstream source from tag 'upstream/1.13.90'
Update to upstream version '1.13.90'
with Debian dir d7d3d98e1240df49343a72511602da7099232e10
Diffstat (limited to 'src/nm-hostname-manager.c')
-rw-r--r--src/nm-hostname-manager.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nm-hostname-manager.c b/src/nm-hostname-manager.c
index f569ab86..88ff1604 100644
--- a/src/nm-hostname-manager.c
+++ b/src/nm-hostname-manager.c
@@ -48,8 +48,7 @@
 #define HOSTNAME_FILE_UCASE_HOSTNAME "/etc/HOSTNAME"
 #define HOSTNAME_FILE_GENTOO         "/etc/conf.d/hostname"
 
-#define IFCFG_DIR                    SYSCONFDIR "/sysconfig/network"
-#define CONF_DHCP                    IFCFG_DIR "/dhcp"
+#define CONF_DHCP                    SYSCONFDIR "/sysconfig/network/dhcp"
 
 #if (defined(HOSTNAME_PERSIST_SUSE) + defined(HOSTNAME_PERSIST_SLACKWARE) + defined(HOSTNAME_PERSIST_GENTOO)) > 1
 #error "Can only define one of HOSTNAME_PERSIST_*"
@@ -103,7 +102,7 @@ NM_DEFINE_SINGLETON_GETTER (NMHostnameManager, nm_hostname_manager_get, NM_TYPE_
 /*****************************************************************************/
 
 #if defined(HOSTNAME_PERSIST_GENTOO)
-static gchar *
+static char *
 read_hostname_gentoo (const char *path)
 {
 	gs_free char *contents = NULL;
@@ -129,7 +128,7 @@ read_hostname_gentoo (const char *path)
 #endif
 
 #if defined(HOSTNAME_PERSIST_SLACKWARE)
-static gchar *
+static char *
 read_hostname_slackware (const char *path)
 {
 	gs_free char *contents = NULL;