libs/libc/unistd/lib_alarm.c,sched/timer/timer_getitimer.c: Silence a

warning with struct initialization.
This commit is contained in:
Ouss4 2020-02-20 00:39:54 +00:00 committed by patacongo
parent b403bfecd5
commit f8801e1bd8
2 changed files with 6 additions and 3 deletions

View File

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

View File

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