diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 18:39:29 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 18:39:29 +0000 |
commit | 59f367c060c408a9c9f2ee6db3a4fd498c4a2724 (patch) | |
tree | 80d034ca2b741e6d5b074758c5285f804f772c66 /nuttx/sched/mq_open.c | |
parent | 24bdea23f746984480bd59dd13dd4d631a210320 (diff) | |
download | px4-nuttx-59f367c060c408a9c9f2ee6db3a4fd498c4a2724.tar.gz px4-nuttx-59f367c060c408a9c9f2ee6db3a4fd498c4a2724.tar.bz2 px4-nuttx-59f367c060c408a9c9f2ee6db3a4fd498c4a2724.zip |
Switching to C99 stdint.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2336 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/mq_open.c')
-rw-r--r-- | nuttx/sched/mq_open.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/nuttx/sched/mq_open.c b/nuttx/sched/mq_open.c index 2179178d0..4780d396b 100644 --- a/nuttx/sched/mq_open.c +++ b/nuttx/sched/mq_open.c @@ -1,7 +1,7 @@ /**************************************************************************** - * mq_open.c + * sched/mq_open.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -37,8 +37,10 @@ * Included Files ****************************************************************************/ -#include <sys/types.h> /* uint32, etc. */ -#include <stdarg.h> /* va_list */ +#include <nuttx/config.h> + +#include <sys/types.h> +#include <stdarg.h> #include <mqueue.h> #include <fcntl.h> #include <string.h> @@ -173,10 +175,10 @@ mqd_t mq_open(const char *mq_name, int oflags, ...) sq_init(&msgq->msglist); if (attr) { - msgq->maxmsgs = (sint16)attr->mq_maxmsg; + msgq->maxmsgs = (int16_t)attr->mq_maxmsg; if (attr->mq_msgsize <= MQ_MAX_BYTES) { - msgq->maxmsgsize = (sint16)attr->mq_msgsize; + msgq->maxmsgsize = (int16_t)attr->mq_msgsize; } else { |