Skip to content

Commit

Permalink
tools/desktop: do not provide addr and addrlen to accept()
Browse files Browse the repository at this point in the history
The returned values were not used.

Fixes build on MinGW.
  • Loading branch information
mbouron committed May 18, 2024
1 parent 723d6d0 commit 907aea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngl-tools/ngl-desktop.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ static void *server_start(void *arg)
struct ctx *s = arg;

for (;;) {
const int conn_fd = accept(s->sock_fd, s->addr->ai_addr, &s->addr->ai_addrlen);
const int conn_fd = accept(s->sock_fd, NULL, NULL);
if (conn_fd < 0) {
perror("accept");
break;
Expand Down

0 comments on commit 907aea6

Please sign in to comment.