diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-02-09 22:14:34 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-02-09 22:14:34 +0000 |
commit | 87ad91cafbef5c328ed83c7c5bf56df6a15cadcf (patch) | |
tree | 7d41edb274c31a27cf4e908f9480e09d36b69307 /librt/mq_open.c | |
parent | 59b10970c522f8cee255a08b4faf93c8e3addd57 (diff) |
run through Lindent
Diffstat (limited to 'librt/mq_open.c')
-rw-r--r-- | librt/mq_open.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/librt/mq_open.c b/librt/mq_open.c index 3648b5aa7..e87220eb0 100644 --- a/librt/mq_open.c +++ b/librt/mq_open.c @@ -13,7 +13,7 @@ #define __NR___syscall_mq_open __NR_mq_open static inline _syscall4(int, __syscall_mq_open, const char *, name, - int, oflag, __kernel_mode_t, mode, void *, attr); + int, oflag, __kernel_mode_t, mode, void *, attr); /* * Establish connection between a process and a message queue and * return message queue descriptor or (mqd_t) -1 on error. @@ -25,28 +25,28 @@ static inline _syscall4(int, __syscall_mq_open, const char *, name, */ mqd_t mq_open(const char *name, int oflag, ...) { - mode_t mode; - struct mq_attr *attr; + mode_t mode; + struct mq_attr *attr; - if (name[0] != '/') { - __set_errno(EINVAL); - return -1; - } + if (name[0] != '/') { + __set_errno(EINVAL); + return -1; + } - mode = 0; - attr = NULL; + mode = 0; + attr = NULL; - if (oflag & O_CREAT) { - va_list ap; + if (oflag & O_CREAT) { + va_list ap; - va_start(ap, oflag); - mode = va_arg(ap, mode_t); - attr = va_arg(ap, struct mq_attr *); + va_start(ap, oflag); + mode = va_arg(ap, mode_t); + attr = va_arg(ap, struct mq_attr *); - va_end(ap); - } + va_end(ap); + } - return __syscall_mq_open(name + 1, oflag, mode, attr); + return __syscall_mq_open(name + 1, oflag, mode, attr); } #endif |