#4035: Reserved identifier "time" re-used in rtems_clock_get_tod_timeval()
--------------------------------+--------------------
  Reporter:  Jens Schweikhardt  |      Owner:  (none)
      Type:  enhancement        |     Status:  new
  Priority:  normal             |  Milestone:
 Component:  rtems              |    Version:  5
  Severity:  minor              |   Keywords:
Blocked By:                     |   Blocking:
--------------------------------+--------------------
 The ISO C identifier "time" from time.h is re-used in the prototype and
 definition of the rtems_clock_get_tod_timeval() function (and maybe
 elsewhere too).
 In certain cases this could lead to undefined behavior.
 It certainly upsets our lint (Gimpel FlexeLint).
 It's good software hygiene to avoid shadowing ISO C identifiers.
 Desired change: in cpukit/rtems/src/clockgettodtimeval.c
 use an unreserved identifier.

--
Ticket URL: <http://devel.rtems.org/ticket/4035>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to