diff options
Diffstat (limited to 'networking/nc.c')
-rw-r--r-- | networking/nc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/nc.c b/networking/nc.c index 2f8a36b..5fd9242 100644 --- a/networking/nc.c +++ b/networking/nc.c @@ -85,8 +85,7 @@ int nc_main(int argc, char **argv) if (!cfd) { sfd = xsocket(AF_INET, SOCK_STREAM, 0); fcntl(sfd, F_SETFD, FD_CLOEXEC); - opt = 1; - setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)); + setsockopt_reuseaddr(sfd); address.sin_family = AF_INET; // Set local port. |