projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use explicit visibility to optimize a few hot-path function calls
[musl]
/
src
/
network
/
getsockopt.c
diff --git
a/src/network/getsockopt.c
b/src/network/getsockopt.c
index
a9e0a72
..
28079d8
100644
(file)
--- a/
src/network/getsockopt.c
+++ b/
src/network/getsockopt.c
@@
-1,7
+1,7
@@
#include <sys/socket.h>
#include "syscall.h"
#include <sys/socket.h>
#include "syscall.h"
-int getsockopt(int fd, int level, int optname, void *
optval, socklen_t *
optlen)
+int getsockopt(int fd, int level, int optname, void *
restrict optval, socklen_t *restrict
optlen)
{
return socketcall(getsockopt, fd, level, optname, optval, optlen, 0);
}
{
return socketcall(getsockopt, fd, level, optname, optval, optlen, 0);
}