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

Side by Side Diff: fusl/src/mq/mq_unlink.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 unified diff | Download patch
OLDNEW
1 #include <mqueue.h> 1 #include <mqueue.h>
2 #include <errno.h> 2 #include <errno.h>
3 #include "syscall.h" 3 #include "syscall.h"
4 4
5 int mq_unlink(const char *name) 5 int mq_unlink(const char* name) {
6 { 6 int ret;
7 » int ret; 7 if (*name == '/')
8 » if (*name == '/') name++; 8 name++;
9 » ret = __syscall(SYS_mq_unlink, name); 9 ret = __syscall(SYS_mq_unlink, name);
10 » if (ret < 0) { 10 if (ret < 0) {
11 » » if (ret == -EPERM) ret = -EACCES; 11 if (ret == -EPERM)
12 » » errno = -ret; 12 ret = -EACCES;
13 » » return -1; 13 errno = -ret;
14 » } 14 return -1;
15 » return ret; 15 }
16 return ret;
16 } 17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698