mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-21 15:29:56 +02:00
make struct initialization C99 compatible again
Mainly change {} to { 0 } to remove a pedantic warning.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Oliver Hartkopp
parent
d3b29dfa48
commit
204235c9ce
+1
-1
@@ -61,7 +61,7 @@ static void onsigalrm(int sig)
|
||||
|
||||
static void schedule_oneshot_itimer(double delay)
|
||||
{
|
||||
struct itimerval it = {};
|
||||
struct itimerval it = { 0 };
|
||||
|
||||
it.it_value.tv_sec = delay;
|
||||
it.it_value.tv_usec = (long)(delay * 1e6) % 1000000;
|
||||
|
||||
Reference in New Issue
Block a user