Skip to content

Commit

Permalink
params to NULL as not used
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelemusiani committed Dec 23, 2024
1 parent 18b6672 commit 4808963
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/vde_autolink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1156,9 +1156,7 @@ static int newmgmtconn(int fd,struct pollfd *pfd,int nfds)
{
int new;
char buf[MAXCMD];
struct sockaddr addr;
socklen_t len = sizeof(addr);
new = accept(fd, &addr, &len);
new = accept(fd, NULL, NULL);
if(new < 0){
printlog(LOG_ERR,"mgmt accept %s",strerror(errno));
return nfds;
Expand Down
4 changes: 1 addition & 3 deletions src/vde_router/vde_router.c
Original file line number Diff line number Diff line change
Expand Up @@ -1350,9 +1350,7 @@ static int newmgmtconn(int fd,struct pollfd *pfd,int nfds)
{
int new;
char buf[MAXCMD];
struct sockaddr addr;
socklen_t len = sizeof(addr);
new = accept(fd, &addr, &len);
new = accept(fd, NULL, NULL);
if(new < 0) {
fprintf(stderr, "mgmt accept %s",strerror(errno));
return nfds;
Expand Down
4 changes: 1 addition & 3 deletions src/wirefilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,9 +944,7 @@ static int newmgmtconn(int fd,struct pollfd *pfd,int nfds)
{
int new;
char buf[MAXCMD];
struct sockaddr addr;
socklen_t len = sizeof(addr);
new = accept(fd, &addr, &len);
new = accept(fd, NULL, NULL);
if(new < 0){
printlog(LOG_WARNING,"mgmt accept %s",strerror(errno));
return nfds;
Expand Down

0 comments on commit 4808963

Please sign in to comment.