diff options
| author | Bernard Xiong <[email protected]> | 2014-04-13 08:35:09 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2014-04-13 08:35:09 +0800 |
| commit | 3022725f53b440d97e6c4f960f2abcc9cf4c5143 (patch) | |
| tree | 5dd94ddbce735341502845f32e5282e40578f6b5 /components/pthreads/mqueue.c | |
| parent | 0c4ac4bd1a93ac1406f87f1d108c54bf14f57d28 (diff) | |
| parent | 5ad58a59a4374e47a69a4d7d78e56a7b03de1156 (diff) | |
Merge pull request #262 from grissiom/misc-fix
Misc fix
Diffstat (limited to 'components/pthreads/mqueue.c')
| -rw-r--r-- | components/pthreads/mqueue.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/components/pthreads/mqueue.c b/components/pthreads/mqueue.c index 7b669dc367..c1303ae6b1 100644 --- a/components/pthreads/mqueue.c +++ b/components/pthreads/mqueue.c @@ -119,7 +119,6 @@ mqd_t mq_open(const char *name, int oflag, ...) { mqd_t mqdes; va_list arg; - mode_t mode; struct mq_attr *attr = RT_NULL; /* lock posix mqueue list */ @@ -129,8 +128,6 @@ mqd_t mq_open(const char *name, int oflag, ...) if (oflag & O_CREAT) { va_start(arg, oflag); - mode = (mode_t)va_arg(arg, unsigned int); - mode = mode; attr = (struct mq_attr *)va_arg(arg, struct mq_attr *); va_end(arg); |
