From 9dad482ad8bcf10956f20902cc18289c927a457b Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 4 Mar 2011 14:36:45 +0100 Subject: Remove unnecessary casting variables from get_item_{hour,min}(). Signed-off-by: Lukas Fleischer --- src/utils.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/utils.c b/src/utils.c index fc205cb..a5adec1 100644 --- a/src/utils.c +++ b/src/utils.c @@ -471,15 +471,13 @@ get_item_time (long date) int get_item_hour (long date) { - time_t t = (time_t)date; - return (localtime (&t))->tm_hour; + return (localtime ((time_t *)&date))->tm_hour; } int get_item_min (long date) { - time_t t = (time_t)date; - return (localtime (&t))->tm_min; + return (localtime ((time_t *)&date))->tm_min; } long -- cgit v1.2.3-70-g09d2