Fix GCC init warning on ArmV5, use memset() instead
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
parent
af0da3cf1d
commit
680c622efb
@ -1174,10 +1174,11 @@ char *textpri(int pri)
|
|||||||
|
|
||||||
static void check_timestamp(struct buf_msg *buffer)
|
static void check_timestamp(struct buf_msg *buffer)
|
||||||
{
|
{
|
||||||
struct logtime zero = { 0 };
|
struct logtime zero;
|
||||||
struct logtime now;
|
struct logtime now;
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
|
|
||||||
|
memset(&zero, 0, sizeof(zero));
|
||||||
if (memcmp(&buffer->timestamp, &zero, sizeof(zero)))
|
if (memcmp(&buffer->timestamp, &zero, sizeof(zero)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user