diff options
Diffstat (limited to 'networking/nc.c')
-rw-r--r-- | networking/nc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nc.c b/networking/nc.c index 5fd9242..b2a4596 100644 --- a/networking/nc.c +++ b/networking/nc.c @@ -104,7 +104,7 @@ int nc_main(int argc, char **argv) if (!lport) { socklen_t len = sizeof(address); - getsockname(sfd, &address, &len); + getsockname(sfd, (struct sockaddr *) &address, &len); fdprintf(2, "%d\n", SWAP_BE16(address.sin_port)); } repeatyness: |