summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-18 22:10:24 +0000
committerDenis Vlasenko2006-12-18 22:10:24 +0000
commitc8e6e35ba4095846121d5b5a3eee57caa5e8e0fb (patch)
treed310542c65bbfd183b50f156916ef3313721625f /networking
parent83e5d6f77237b64853c194b0ce592e77ef677c4d (diff)
downloadbusybox-c8e6e35ba4095846121d5b5a3eee57caa5e8e0fb.zip
busybox-c8e6e35ba4095846121d5b5a3eee57caa5e8e0fb.tar.gz
nc: add missing cast
xfuncs: add dprintf for dietlibc
Diffstat (limited to 'networking')
-rw-r--r--networking/nc.c2
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: