diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-04-18 22:01:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-04-18 22:01:47 +0000 |
commit | 6f68d5faaf1f7d4d910c079cf9238360f00124c4 (patch) | |
tree | 23a877b7a894e4ae0054f785d7d1d10c4fde9eeb /cpukit/posix/src/mqueuegetattr.c | |
parent | 2011-04-18 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-6f68d5faaf1f7d4d910c079cf9238360f00124c4.tar.bz2 |
2011-04-18 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/mqueuegetattr.c,
score/inline/rtems/score/schedulerpriority.inl: Remove warnings.
Diffstat (limited to 'cpukit/posix/src/mqueuegetattr.c')
-rw-r--r-- | cpukit/posix/src/mqueuegetattr.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cpukit/posix/src/mqueuegetattr.c b/cpukit/posix/src/mqueuegetattr.c index 16a5c50b5f..9d33efdb5d 100644 --- a/cpukit/posix/src/mqueuegetattr.c +++ b/cpukit/posix/src/mqueuegetattr.c @@ -11,7 +11,7 @@ * This code ignores the O_RDONLY/O_WRONLY/O_RDWR flag at open * time. * - * COPYRIGHT (c) 1989-2007. + * COPYRIGHT (c) 1989-2011. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -52,7 +52,6 @@ int mq_getattr( POSIX_Message_queue_Control *the_mq; POSIX_Message_queue_Control_fd *the_mq_fd; Objects_Locations location; - CORE_message_queue_Attributes *the_mq_attr; if ( !mqstat ) rtems_set_errno_and_return_minus_one( EINVAL ); @@ -66,9 +65,6 @@ int mq_getattr( /* * Return the old values. */ - - the_mq_attr = &the_mq->Message_queue.Attributes; - mqstat->mq_flags = the_mq_fd->oflag; mqstat->mq_msgsize = the_mq->Message_queue.maximum_message_size; mqstat->mq_maxmsg = the_mq->Message_queue.maximum_pending_messages; |