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
|
int
|
||||||
get_item_hour (long date)
|
get_item_hour (long date)
|
||||||
{
|
{
|
||||||
time_t t = (time_t)date;
|
return (localtime ((time_t *)&date))->tm_hour;
|
||||||
return (localtime (&t))->tm_hour;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
get_item_min (long date)
|
get_item_min (long date)
|
||||||
{
|
{
|
||||||
time_t t = (time_t)date;
|
return (localtime ((time_t *)&date))->tm_min;
|
||||||
return (localtime (&t))->tm_min;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
long
|
long
|
||||||
|
Loading…
x
Reference in New Issue
Block a user