From: Martin Pitt Date: Mon, 29 Feb 2016 14:16:03 +0000 (+0100) Subject: timedated: trivial stylistic fix X-Git-Tag: v230~300^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb971cc0317e6767a3394f721eac6efa99f51fed;p=thirdparty%2Fsystemd.git timedated: trivial stylistic fix Don't use {} for single-line "then" blocks. --- diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index 9406d28abec..0febc36af87 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";