projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
450e89f
)
timedated: trivial stylistic fix
author
Martin Pitt
<martin.pitt@ubuntu.com>
Mon, 29 Feb 2016 14:16:03 +0000
(15:16 +0100)
committer
Martin Pitt
<martin.pitt@ubuntu.com>
Mon, 29 Feb 2016 14:19:30 +0000
(15:19 +0100)
Don't use {} for single-line "then" blocks.
src/timedate/timedated.c
patch
|
blob
|
history
diff --git
a/src/timedate/timedated.c
b/src/timedate/timedated.c
index 9406d28abec7dffb059c94dbdd93606d5dc4f949..0febc36af875ea7525cac05f9ca0c7308e6da700 100644
(file)
--- 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";