Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: fusl/src/mq/mq_open.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fusl/src/mq/mq_open.c
diff --git a/fusl/src/mq/mq_open.c b/fusl/src/mq/mq_open.c
index aa91d589108fbd05757ba8c04afaa43e8711d743..3a6050478305bb0794675b2f00ffcb99d77a6c11 100644
--- a/fusl/src/mq/mq_open.c
+++ b/fusl/src/mq/mq_open.c
@@ -3,17 +3,17 @@
#include <stdarg.h>
#include "syscall.h"
-mqd_t mq_open(const char *name, int flags, ...)
-{
- mode_t mode = 0;
- struct mq_attr *attr = 0;
- if (*name == '/') name++;
- if (flags & O_CREAT) {
- va_list ap;
- va_start(ap, flags);
- mode = va_arg(ap, mode_t);
- attr = va_arg(ap, struct mq_attr *);
- va_end(ap);
- }
- return syscall(SYS_mq_open, name, flags, mode, attr);
+mqd_t mq_open(const char* name, int flags, ...) {
+ mode_t mode = 0;
+ struct mq_attr* attr = 0;
+ if (*name == '/')
+ name++;
+ if (flags & O_CREAT) {
+ va_list ap;
+ va_start(ap, flags);
+ mode = va_arg(ap, mode_t);
+ attr = va_arg(ap, struct mq_attr*);
+ va_end(ap);
+ }
+ return syscall(SYS_mq_open, name, flags, mode, attr);
}

Powered by Google App Engine
This is Rietveld 408576698