Skip to content
Success

Changes

Summary

  1. core: fix printf format casts for struct timeval fields (details)
  2. vty: guard definition of _XOPEN_SOURCE (details)
Commit e309200f886e020eed7a77e0bab0639fe0f04dfd by dtv.comp
core: fix printf format casts for struct timeval fields

Explicitly cast struct timeval fields to long when passing them to
printf-style functions.

This avoids compiler warnings/errors on platforms where tv_sec or
tv_usec are not exactly of type long, while keeping the existing log
and control output unchanged.

Change-Id: Icac9e392c728948a7976970658e37f5e0da41709
The file was modifiedsrc/core/fsm.c
The file was modifiedsrc/ctrl/fsm_ctrl_commands.c
Commit b2337963a490c30f5596a5c96d9cf4db8ca08e93 by dtv.comp
vty: guard definition of _XOPEN_SOURCE

Define _XOPEN_SOURCE only if it is not already provided by the build
environment.

This avoids redefinition warnings/errors while ensuring required POSIX
interfaces are available.

Change-Id: I4f53aff1afef02abce7cb70d1b29080ba900ff41
The file was modifiedsrc/vty/command.c