libs/libc/unistd/lib_alarm.c,sched/timer/timer_getitimer.c: Silence a
warning with struct initialization.
This commit is contained in:
parent
b403bfecd5
commit
f8801e1bd8
|
@ -70,12 +70,14 @@ unsigned int alarm(unsigned int seconds)
|
|||
{
|
||||
struct itimerval value =
|
||||
{
|
||||
0, 0
|
||||
{0, 0},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
struct itimerval ovalue =
|
||||
{
|
||||
0, 0
|
||||
{0, 0},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
value.it_value.tv_sec = seconds;
|
||||
|
|
|
@ -86,7 +86,8 @@ int getitimer(int which, FAR struct itimerval *value)
|
|||
FAR struct tcb_s *rtcb = this_task();
|
||||
struct itimerspec spec =
|
||||
{
|
||||
0, 0
|
||||
{0, 0},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
int ret = OK;
|
||||
|
|
Loading…
Reference in New Issue