Corrected error message.
This commit is contained in:
@@ -429,7 +429,7 @@ bool bip_init(
|
|||||||
rv = bind(sock_fd, (const struct sockaddr *) &sin,
|
rv = bind(sock_fd, (const struct sockaddr *) &sin,
|
||||||
sizeof(struct sockaddr));
|
sizeof(struct sockaddr));
|
||||||
if (rv < 0) {
|
if (rv < 0) {
|
||||||
fprintf(stderr, "bip: failed to bind to %s port %hd\n",
|
fprintf(stderr, "bip: failed to bind to %s port %hu\n",
|
||||||
inet_ntoa(sin.sin_addr), bip_get_port());
|
inet_ntoa(sin.sin_addr), bip_get_port());
|
||||||
close(sock_fd);
|
close(sock_fd);
|
||||||
bip_set_socket(-1);
|
bip_set_socket(-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user