aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-03-04 14:36:45 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2011-03-04 14:36:48 +0100
commit9dad482ad8bcf10956f20902cc18289c927a457b (patch)
treec46c9c0e217857544ff97ecca9643b389c49c784
parent81584e77f888293d57cfd5bbde561beaf85f3895 (diff)
downloadcalcurse-9dad482ad8bcf10956f20902cc18289c927a457b.tar.gz
calcurse-9dad482ad8bcf10956f20902cc18289c927a457b.zip
Remove unnecessary casting variables from get_item_{hour,min}().
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-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