projects
/
systembsd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5b56a1e
)
remove references to deprecated tzfile.h, use previously defined consts
author
kremlin
<ian@kremlin.cc>
Thu, 14 Jul 2016 20:34:34 +0000
(15:34 -0500)
committer
kremlin
<ian@kremlin.cc>
Thu, 14 Jul 2016 20:34:34 +0000
(15:34 -0500)
src/interfaces/timedated/timedated.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/timedated/timedated.c
b/src/interfaces/timedated/timedated.c
index c4f5033876abd4368383cb8e5f3b413efccce18d..cea5b1a3049b430e315763d744fb1cf9aab23bc7 100644
(file)
--- a/
src/interfaces/timedated/timedated.c
+++ b/
src/interfaces/timedated/timedated.c
@@
-24,7
+24,6
@@
#include <errno.h>
#include <time.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <string.h>
-#include <tzfile.h>
#include <glib/gprintf.h>
#include <glib-unix.h>
#include <glib/gprintf.h>
#include <glib-unix.h>
@@
-215,7
+214,7
@@
on_handle_set_timezone(Timedate1 *td1_passed_interf,
g_ptr_array_add(timedated_freeable, statbuf);
g_ptr_array_add(timedated_freeable, tz_target_path);
g_ptr_array_add(timedated_freeable, statbuf);
g_ptr_array_add(timedated_freeable, tz_target_path);
- strlcat(tz_target_path,
TZDIR
, TZNAME_MAX);
+ strlcat(tz_target_path,
OS_TIMEZONE_PATH
, TZNAME_MAX);
strlcat(tz_target_path, "/", TZNAME_MAX);
strlcat(tz_target_path, proposed_tz, TZNAME_MAX);
strlcat(tz_target_path, "/", TZNAME_MAX);
strlcat(tz_target_path, proposed_tz, TZNAME_MAX);
@@
-252,11
+251,11
@@
on_handle_set_timezone(Timedate1 *td1_passed_interf,
memset(statbuf, 0, sizeof statbuf);
memset(statbuf, 0, sizeof statbuf);
- if(!lstat(
TZDEFAULT
, statbuf))
- if(remove(
TZDEFAULT
))
+ if(!lstat(
OS_LOCALTIME
, statbuf))
+ if(remove(
OS_LOCALTIME
))
return FALSE;
return FALSE;
- if(symlink(tz_target_path,
TZDEFAULT
))
+ if(symlink(tz_target_path,
OS_LOCALTIME
))
return FALSE;
return FALSE;