diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-19 01:10:24 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-19 01:10:24 +0300 |
commit | c8e6e35ba4095846121d5b5a3eee57caa5e8e0fb (patch) | |
tree | d310542c65bbfd183b50f156916ef3313721625f /networking/nc.c | |
parent | 83e5d6f77237b64853c194b0ce592e77ef677c4d (diff) |
nc: add missing cast
xfuncs: add dprintf for dietlibc
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 5fd9242cc..b2a4596d6 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: |