dtcm: prevent to use NULL as a Tick type
Tick (aka time_t) shall be an integer type, not a pointer. Change to use `0` instead of `NULL`.
This commit is contained in:
@@ -92,7 +92,7 @@ PrevTick(
|
||||
Tick next_time;
|
||||
Tick _start_time;
|
||||
|
||||
if (!re) return (Tick)NULL;
|
||||
if (!re) return (Tick)0;
|
||||
|
||||
if (!start_time)
|
||||
FillInRepeatEvent(cur_time, re);
|
||||
@@ -148,7 +148,7 @@ DoMinute(
|
||||
const RepeatEvent *re,
|
||||
RepeatEventState *res)
|
||||
{
|
||||
return (Tick)NULL;
|
||||
return (Tick)0;
|
||||
}
|
||||
|
||||
static Tick
|
||||
|
||||
Reference in New Issue
Block a user