summaryrefslogtreecommitdiff
path: root/src/timedate/timedated.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/timedate/timedated.c')
-rw-r--r--src/timedate/timedated.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
index 9406d28abe..ffec609c69 100644
--- a/src/timedate/timedated.c
+++ b/src/timedate/timedated.c
@@ -131,10 +131,10 @@ static int context_write_data_local_rtc(Context *c) {
size_t a, b;
p = strchrnul(s, '\n');
- if (*p == '\0') {
+ if (*p == '\0')
/* only one line, no \n terminator */
prepend = "\n0\n";
- } else if (p[1] == '\0') {
+ else if (p[1] == '\0') {
/* only one line, with \n terminator */
++p;
prepend = "0\n";
@@ -173,7 +173,7 @@ static int context_write_data_local_rtc(Context *c) {
}
}
- mac_selinux_init("/etc");
+ mac_selinux_init();
return write_string_file_atomic_label("/etc/adjtime", w);
}