Remove unnecessary casting variables from get_item_{hour,min}().
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
81584e77f8
commit
9dad482ad8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user