comparison liboctave/wrappers/time-wrappers.c @ 32096:501730f07abc

octave_gettimeofday_wrapper: Use NULL for pointer type argument. * liboctave/wrappers/time-wrappers.c (octave_gettimeofday_wrapper): Use NULL instead of 0 for pointer type argument.
author Markus Mützel <markus.muetzel@gmx.de>
date Sun, 21 May 2023 12:15:37 +0200
parents 597f3ee61a48
children 5e207c861831
comparison
equal deleted inserted replaced
32095:28ef2991fb5a 32096:501730f07abc
41 int 41 int
42 octave_gettimeofday_wrapper (time_t *sec, long *usec) 42 octave_gettimeofday_wrapper (time_t *sec, long *usec)
43 { 43 {
44 struct timeval tv; 44 struct timeval tv;
45 45
46 int status = gettimeofday (&tv, 0); 46 int status = gettimeofday (&tv, NULL);
47 47
48 if (status < 0) 48 if (status < 0)
49 { 49 {
50 *sec = 0; 50 *sec = 0;
51 *usec = 0; 51 *usec = 0;