summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c6
1 files 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