projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
clarify that bits headers are included as public headers
[musl]
/
src
/
mq
/
mq_unlink.c
diff --git
a/src/mq/mq_unlink.c
b/src/mq/mq_unlink.c
index
1bb92af
..
6a08a4c
100644
(file)
--- a/
src/mq/mq_unlink.c
+++ b/
src/mq/mq_unlink.c
@@
-5,10
+5,7
@@
int mq_unlink(const char *name)
{
int ret;
- if (*name++ != '/') {
- errno = EINVAL;
- return -1;
- }
+ if (*name == '/') name++;
ret = __syscall(SYS_mq_unlink, name);
if (ret < 0) {
if (ret == -EPERM) ret = -EACCES;