diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-05 13:32:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-05 13:32:39 +0000 |
commit | f773c0122a4412a8846764a35cccb241efa034c2 (patch) | |
tree | d5e623ff112535491866477204be4c207a07c301 /cpukit/libmisc | |
parent | 2008-08-04 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-f773c0122a4412a8846764a35cccb241efa034c2.tar.bz2 |
2008-08-04 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/include/rtems/rtems/sem.h, rtems/src/semobtain.c:
Changed option set type to rtems_option.
* score/src/objectgetinfo.c: Check return value of
_Objects_API_maximum_class().
* libmisc/monitor/mon-mpci.c, libmisc/monitor/monitor.h,
rtems/include/rtems/rtems/message.h, rtems/src/msgmp.c,
rtems/src/msgqallocate.c, rtems/src/msgqbroadcast.c,
rtems/src/msgqcreate.c, rtems/src/msgqreceive.c, rtems/src/msgqsend.c,
rtems/src/msgqurgent.c, score/include/rtems/score/coremsg.h,
score/include/rtems/score/mpci.h, score/include/rtems/score/thread.h,
score/inline/rtems/score/coremsg.inl, score/src/coremsg.c,
score/src/coremsgbroadcast.c, score/src/coremsgseize.c,
score/src/coremsgsubmit.c:
Removed parameters of _Message_queue_Allocate(). Changed option set
type to rtems_option. Changed type of maximum message and packet size
to size_t. Changed the input buffer type for message send functions to
"const void *". Changed the pointer to the second return argument in
the thread wait information to a union. This union can contain a
pointer to an immutable or a mutable object. This is somewhat fragile.
An alternative would be to add a third pointer for immutable objects,
but this would increase the structure size.
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/monitor/mon-mpci.c | 2 | ||||
-rw-r--r-- | cpukit/libmisc/monitor/monitor.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libmisc/monitor/mon-mpci.c b/cpukit/libmisc/monitor/mon-mpci.c index 733852ac4d..1a4b6bf8b2 100644 --- a/cpukit/libmisc/monitor/mon-mpci.c +++ b/cpukit/libmisc/monitor/mon-mpci.c @@ -131,7 +131,7 @@ rtems_monitor_mpci_dump( length += rtems_monitor_dump_decimal(monitor_mpci->default_timeout); length += rtems_monitor_pad(46, length); - length += rtems_monitor_dump_decimal(monitor_mpci->maximum_packet_size); + length += rtems_monitor_dump_decimal((uint32_t) monitor_mpci->maximum_packet_size); fprintf(stdout,"\n"); length = 0; diff --git a/cpukit/libmisc/monitor/monitor.h b/cpukit/libmisc/monitor/monitor.h index d05e35a3e1..3e23c4d01b 100644 --- a/cpukit/libmisc/monitor/monitor.h +++ b/cpukit/libmisc/monitor/monitor.h @@ -139,7 +139,7 @@ typedef struct { rtems_attribute attributes; uint32_t number_of_pending_messages; uint32_t maximum_pending_messages; - uint32_t maximum_message_size; + size_t maximum_message_size; } rtems_monitor_queue_t; /* @@ -251,7 +251,7 @@ typedef struct { uint32_t maximum_proxies; /* maximum # proxies */ uint32_t default_timeout; /* in ticks */ - uint32_t maximum_packet_size; + size_t maximum_packet_size; rtems_monitor_symbol_t initialization; rtems_monitor_symbol_t get_packet; rtems_monitor_symbol_t return_packet; |