diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-02-29 15:16:03 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-02-29 15:19:30 +0100 |
commit | cb971cc0317e6767a3394f721eac6efa99f51fed (patch) | |
tree | 7a8299f375857fe385b50d19b631dda66f26a7a7 | |
parent | 450e89f6b1e1e3c4d86239287b4049d891da93cb (diff) |
timedated: trivial stylistic fix
Don't use {} for single-line "then" blocks.
-rw-r--r-- | src/timedate/timedated.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index 9406d28abe..0febc36af8 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"; |