From: Andre Noll Date: Thu, 1 Jan 2015 17:49:06 +0000 (+0000) Subject: fade.c: Don't use asctime(). X-Git-Tag: v0.5.4~27 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=92f150d622efe2423c610676f9e7b196391df436;hp=72468e97b630d07e3ccf982631f5f3ba2c3d9409;ds=sidebyside fade.c: Don't use asctime(). POSIX.1-2008 marks asctime() as obsolete. Found by cppcheck. --- diff --git a/fade.c b/fade.c index 8c488a9f..7dfcc954 100644 --- 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) {