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:
OBATA Akio
2021-10-16 17:07:37 +09:00
parent 4316bb797d
commit 16eb6092b0
5 changed files with 14 additions and 14 deletions

View File

@@ -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