diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-08-30 03:18:33 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-09-01 18:20:13 +0200 |
commit | 64d6c22905e94b02e760747c6c143dc9893083d9 (patch) | |
tree | 54722775e9dd947f4d6b0633e40dad00e1f476fb /src/network/networkd-link.c | |
parent | 40ec276fdfc98f9fa7ed155b906235a79711066d (diff) |
tree-wide: do not shadow the global var timezone
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index d797a8ded8..82bd727c3a 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -980,14 +980,14 @@ static int set_timezone_handler(sd_bus_message *m, void *userdata, sd_bus_error return 1; } -int link_set_timezone(Link *link, const char *timezone) { +int link_set_timezone(Link *link, const char *tz) { int r; assert(link); assert(link->manager); - assert(timezone); + assert(tz); - log_link_debug(link, "Setting system timezone: '%s'", timezone); + log_link_debug(link, "Setting system timezone: '%s'", tz); if (!link->manager->bus) { log_link_info(link, "Not connected to system bus, ignoring timezone."); @@ -1004,7 +1004,7 @@ int link_set_timezone(Link *link, const char *timezone) { set_timezone_handler, link, "sb", - timezone, + tz, false); if (r < 0) return log_link_error_errno(link, r, "Could not set timezone: %m"); |