Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
Fix coding style
[slstatus.git]
/
components
/
datetime.c
diff --git
a/components/datetime.c
b/components/datetime.c
index
0816923
..
713b0fb
100644
(file)
--- a/
components/datetime.c
+++ b/
components/datetime.c
@@
-9,8
+9,9
@@
datetime(const char *fmt)
time_t t;
t = time(NULL);
- if (
strftime(buf, sizeof(buf), fmt, localtime(&t)) == 0)
+ if (
!strftime(buf, sizeof(buf), fmt, localtime(&t))) {
return NULL;
+ }
return buf;
}