getopt: fix null pointer arithmetic ub
[musl] / src / network / accept.c
1 #include <sys/socket.h>
2 #include "syscall.h"
3
4 int accept(int fd, struct sockaddr *restrict addr, socklen_t *restrict len)
5 {
6         return socketcall_cp(accept, fd, addr, len, 0, 0, 0);
7 }