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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
index 4e120564c0..9406d28abe 100644
--- a/src/timedate/timedated.c
+++ b/src/timedate/timedated.c
@@ -126,7 +126,7 @@ static int context_write_data_local_rtc(Context *c) {
return -ENOMEM;
} else {
char *p;
- char *e = (char*) "\n"; /* default if there are not 3 lines with \n terminator */
+ const char *e = "\n"; /* default if there is less than 3 lines */
const char *prepend = "";
size_t a, b;