char * --> caddr_t, where appropriate. trunk
authormycroft <mycroft@NetBSD.org>
Thu, 11 Aug 1994 23:47:51 +0000
branchtrunk
changeset 9510 6ffac68a625f
parent 9509 aeaaa52ae4a5
child 9511 ada448e601fd
char * --> caddr_t, where appropriate.
sys/nfs/nfs_boot.c
--- a/sys/nfs/nfs_boot.c	Thu Aug 11 22:25:32 1994 +0000
+++ b/sys/nfs/nfs_boot.c	Thu Aug 11 23:47:51 1994 +0000
@@ -1,4 +1,4 @@
-/*    $NetBSD: nfs_boot.c,v 1.9 1994/08/11 22:25:35 gwr Exp $ */
+/*    $NetBSD: nfs_boot.c,v 1.10 1994/08/11 23:47:51 mycroft Exp $ */
 
 /*
  * Copyright (c) 1994 Adam Glass, Gordon Ross
@@ -160,7 +160,7 @@
 	 */
 	/* Set interface address. */
 	sin = (struct sockaddr_in *)&ireq.ifr_addr;
-	bzero((char*)sin, sizeof(*sin));
+	bzero((caddr_t)sin, sizeof(*sin));
 	sin->sin_len = sizeof(*sin);
 	sin->sin_family = AF_INET;
 	sin->sin_addr.s_addr = my_ip.s_addr;
@@ -174,7 +174,7 @@
 	 * Get client name and gateway address.
 	 * RPC: bootparam/whoami
 	 */
-	bzero((char*)&bp_sin, sizeof(bp_sin));
+	bzero((caddr_t)&bp_sin, sizeof(bp_sin));
 	bp_sin.sin_len = sizeof(bp_sin);
 	bp_sin.sin_family = AF_INET;
 	bp_sin.sin_addr.s_addr = srv_ip.s_addr;
@@ -203,11 +203,11 @@
 	if (gw_ip.s_addr) {
 		struct sockaddr dst, gw, mask;
 		/* Destination: (default) */
-		bzero((char*)&dst, sizeof(dst));
+		bzero((caddr_t)&dst, sizeof(dst));
 		dst.sa_len = sizeof(dst);
 		dst.sa_family = AF_INET;
 		/* Gateway: */
-		bzero((char*)&gw, sizeof(gw));
+		bzero((caddr_t)&gw, sizeof(gw));
 		sin = (struct sockaddr_in *)&gw;
 		sin->sin_len = sizeof(gw);
 		sin->sin_family = AF_INET;
@@ -522,7 +522,7 @@
 	if (bia->atype != htonl(1))
 		goto bad;
 	sin = md_sin;
-	bzero((char*)sin, sizeof(*sin));
+	bzero((caddr_t)sin, sizeof(*sin));
 	sin->sin_len = sizeof(*sin);
 	sin->sin_family = AF_INET;
 	q = (u_char*) &sin->sin_addr;