diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-03-05 17:28:49 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-03-05 17:30:35 +0100 |
commit | a7787067919d28a2e0564985e41dea42ea0321d8 (patch) | |
tree | b8b3f5c638152cb33aba985d09faf803f4e8f2ed | |
parent | 6f425dc1fad44b1ea878d314e539ddbc7bbde94f (diff) | |
download | calcurse-a7787067919d28a2e0564985e41dea42ea0321d8.tar.gz calcurse-a7787067919d28a2e0564985e41dea42ea0321d8.zip |
Simplify date_sec2date_fmt() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r-- | src/utils.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/utils.c b/src/utils.c index bee5e55..5a59556 100644 --- a/src/utils.c +++ b/src/utils.c @@ -463,11 +463,7 @@ date_sec2date_str (long sec, char *datefmt) void date_sec2date_fmt (long sec, const char *fmt, char *datef) { - struct tm *lt; - time_t t; - - t = sec; - lt = localtime (&t); + struct tm *lt = localtime ((time_t *)&sec); strftime (datef, BUFSIZ, fmt, lt); } |