summaryrefslogtreecommitdiff
path: root/src/utsname.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utsname.c')
-rw-r--r--src/utsname.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utsname.c b/src/utsname.c
index 1451c748..1dd5e0f2 100644
--- a/src/utsname.c
+++ b/src/utsname.c
@@ -85,11 +85,11 @@ const char *connman_utsname_get_hostname(void)
DBG("driver %p name %s", driver, driver->name);
- if (driver->get_hostname == NULL)
+ if (!driver->get_hostname)
continue;
hostname = driver->get_hostname();
- if (hostname != NULL)
+ if (hostname)
return hostname;
}
@@ -107,7 +107,7 @@ int __connman_utsname_set_hostname(const char *hostname)
DBG("driver %p name %s", driver, driver->name);
- if (driver->set_hostname == NULL)
+ if (!driver->set_hostname)
continue;
if (driver->set_hostname(hostname) == 0)
@@ -128,7 +128,7 @@ int __connman_utsname_set_domainname(const char *domainname)
DBG("driver %p name %s", driver, driver->name);
- if (driver->set_domainname == NULL)
+ if (!driver->set_domainname)
continue;
if (driver->set_domainname(domainname) == 0)