timedated: trivial stylistic fix

Don't use {} for single-line "then" blocks.
This commit is contained in:
Martin Pitt
2016-02-29 15:19:30 +01:00
parent 450e89f6b1
commit cb971cc031
+2 -2
View File
@@ -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";