1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 19:21:53 +03:00

timedated: trivial stylistic fix

Don't use {} for single-line "then" blocks.
This commit is contained in:
Martin Pitt 2016-02-29 15:16:03 +01:00
parent 450e89f6b1
commit cb971cc031

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";