projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72468e9
)
fade.c: Don't use asctime().
author
Andre Noll
<maan@tuebingen.mpg.de>
Thu, 1 Jan 2015 17:49:06 +0000
(17:49 +0000)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Mon, 12 Jan 2015 22:29:07 +0000
(23:29 +0100)
POSIX.1-2008 marks asctime() as obsolete.
Found by cppcheck.
fade.c
patch
|
blob
|
history
diff --git
a/fade.c
b/fade.c
index 8c488a9fa67d1e84c3ff0fdd30fd25866eb7fdd5..7dfcc95487af80e3afbf6aa3326f9c3e3d3bb04d 100644
(file)
--- a/
fade.c
+++ b/
fade.c
@@
-203,7
+203,7
@@
static int sweet_dreams(struct mixer *m, struct mixer_handle *h)
tm = localtime(&t1);
}
wake_time_epoch = mktime(tm);
- PARA_INFO_LOG("waketime: %
s", asctime(tm)
);
+ PARA_INFO_LOG("waketime: %
u:%02u", tm->tm_hour, tm->tm_min
);
client_cmd("stop");
sleep(1);
if (fot) {