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:
@@ -9,7 +9,7 @@
|
||||
#include "uint32.h"
|
||||
#include "socket.h"
|
||||
|
||||
int socket_bind4(int s,const char *ip,uint16 port) {
|
||||
int socket_bind4(int s,const char ip[4],uint16 port) {
|
||||
struct sockaddr_in si;
|
||||
byte_zero(&si,sizeof si);
|
||||
si.sin_family = AF_INET;
|
||||
|
||||
Reference in New Issue
Block a user