use restrict everywhere it's required by c99 and/or posix 2008
[musl] / src / network / getsockopt.c
index a9e0a72..28079d8 100644 (file)
@@ -1,7 +1,7 @@
 #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);
 }