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:
parent
2ca5abbc2b
commit
e01e80c5e7
1 changed files with 0 additions and 6 deletions
|
@ -139,12 +139,6 @@ listen(fd, backlog)
|
||||||
errno = EBADF;
|
errno = EBADF;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
/* FIXME: What is this good for? */
|
|
||||||
if(write(cfd, "bind 0", 6) < 0) {
|
|
||||||
errno = EGREG;
|
|
||||||
close(cfd);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
strcpy(msg, "announce ");
|
strcpy(msg, "announce ");
|
||||||
_sock_inaddr2string(r, msg + 9, sizeof msg - 9);
|
_sock_inaddr2string(r, msg + 9, sizeof msg - 9);
|
||||||
n = write(cfd, msg, strlen(msg));
|
n = write(cfd, msg, strlen(msg));
|
||||||
|
|
Loading…
Reference in a new issue