nc: add missing cast
xfuncs: add dprintf for dietlibc
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 @@
 
 			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: