now that gcc 11's static analyzer looks at array bounds in arguments
like "char ip[4]", let's be more strict about that
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include "socket.h"
|
||||
#include "windoze.h"
|
||||
|
||||
int socket_bind4_reuse(int s,const char *ip,uint16 port) {
|
||||
int socket_bind4_reuse(int s,const char ip[4],uint16 port) {
|
||||
int one=1;
|
||||
setsockopt(s,SOL_SOCKET,SO_REUSEADDR,&one,sizeof one);
|
||||
#ifdef SO_REUSEPORT
|
||||
|
||||
Reference in New Issue
Block a user