diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-03-04 14:36:45 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-03-04 14:36:48 +0100 |
commit | 9dad482ad8bcf10956f20902cc18289c927a457b (patch) | |
tree | c46c9c0e217857544ff97ecca9643b389c49c784 /src | |
parent | 81584e77f888293d57cfd5bbde561beaf85f3895 (diff) | |
download | calcurse-9dad482ad8bcf10956f20902cc18289c927a457b.zip |
Remove unnecessary casting variables from get_item_{hour,min}().
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/utils.c | 6 |
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 |