[Bug 1939] ratemonperiod.c: incompatible pointer
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Wed Oct 19 06:51:53 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1939
--- Comment #5 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2011-10-19 01:51:52 CDT ---
In ratemon.h:
/**
* This is the public type used for the rate monotonic timing
* statistics.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
#include <rtems/score/timespec.h>
typedef struct timespec rtems_rate_monotonic_period_time_t;
#else
typedef uint32_t rtems_rate_monotonic_period_time_t;
#endif
/**
* This is the internal type used for the rate monotonic timing
* statistics.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
#include <rtems/score/timestamp.h>
typedef Timestamp_Control Rate_monotonic_Period_time_t;
#else
typedef uint32_t Rate_monotonic_Period_time_t;
#endif
It seems we have different types for the public API and the implementation.
Why depends the public API on __RTEMS_USE_TICKS_FOR_STATISTICS__? Why do we
use *_t names, they seem to be reserved by POSIX:
http://pubs.opengroup.org/onlinepubs/7908799/xsh/compilation.html
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list