From c8e6e35ba4095846121d5b5a3eee57caa5e8e0fb Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 18 Dec 2006 22:10:24 +0000 Subject: nc: add missing cast xfuncs: add dprintf for dietlibc --- networking/nc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking') 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: -- cgit v1.2.3