nc: add missing cast

xfuncs: add dprintf for dietlibc
This commit is contained in:
Denis Vlasenko
2006-12-18 22:10:24 +00:00
parent 83e5d6f772
commit c8e6e35ba4
3 changed files with 35 additions and 1 deletions

View File

@@ -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: