Removed warnings.

This commit is contained in:
Joel Sherrill
2000-01-04 14:00:38 +00:00
parent 1dfc188ef5
commit a148f561c2
4 changed files with 8 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ mqd_t mq_open(
{ {
va_list arg; va_list arg;
mode_t mode; mode_t mode;
struct mq_attr *attr; struct mq_attr *attr = NULL;
int status; int status;
Objects_Id the_mq_id; Objects_Id the_mq_id;
POSIX_Message_queue_Control *the_mq; POSIX_Message_queue_Control *the_mq;
@@ -51,6 +51,7 @@ mqd_t mq_open(
_Thread_Disable_dispatch(); _Thread_Disable_dispatch();
/* XXX is attr used with out being initialized otherwise? */
if ( oflag & O_CREAT ) { if ( oflag & O_CREAT ) {
va_start(arg, oflag); va_start(arg, oflag);
mode = (mode_t) va_arg( arg, mode_t ); mode = (mode_t) va_arg( arg, mode_t );

View File

@@ -37,10 +37,9 @@ int mq_unlink(
const char *name const char *name
) )
{ {
int status; int status;
register POSIX_Message_queue_Control *the_mq; register POSIX_Message_queue_Control *the_mq;
Objects_Id the_mq_id; Objects_Id the_mq_id;
Objects_Locations location;
_Thread_Disable_dispatch(); _Thread_Disable_dispatch();

View File

@@ -43,7 +43,7 @@ mqd_t mq_open(
{ {
va_list arg; va_list arg;
mode_t mode; mode_t mode;
struct mq_attr *attr; struct mq_attr *attr = NULL;
int status; int status;
Objects_Id the_mq_id; Objects_Id the_mq_id;
POSIX_Message_queue_Control *the_mq; POSIX_Message_queue_Control *the_mq;
@@ -51,6 +51,7 @@ mqd_t mq_open(
_Thread_Disable_dispatch(); _Thread_Disable_dispatch();
/* XXX is attr used with out being initialized otherwise? */
if ( oflag & O_CREAT ) { if ( oflag & O_CREAT ) {
va_start(arg, oflag); va_start(arg, oflag);
mode = (mode_t) va_arg( arg, mode_t ); mode = (mode_t) va_arg( arg, mode_t );

View File

@@ -37,10 +37,9 @@ int mq_unlink(
const char *name const char *name
) )
{ {
int status; int status;
register POSIX_Message_queue_Control *the_mq; register POSIX_Message_queue_Control *the_mq;
Objects_Id the_mq_id; Objects_Id the_mq_id;
Objects_Locations location;
_Thread_Disable_dispatch(); _Thread_Disable_dispatch();