ape/bsd/listen.c: Drop "bind 0".

There does not seem to be a good reason for this.  The "bind" command
has no practical consequence.
This commit is contained in:
Benjamin Riefenstahl 2022-07-06 03:38:17 +00:00 committed by Ori Bernstein
parent 2ca5abbc2b
commit e01e80c5e7

View file

@ -139,12 +139,6 @@ listen(fd, backlog)
errno = EBADF;
return -1;
}
/* FIXME: What is this good for? */
if(write(cfd, "bind 0", 6) < 0) {
errno = EGREG;
close(cfd);
return -1;
}
strcpy(msg, "announce ");
_sock_inaddr2string(r, msg + 9, sizeof msg - 9);
n = write(cfd, msg, strlen(msg));