diff options
author | Jared Yanovich <jaredy@cvs.openbsd.org> | 2005-03-25 17:01:05 +0000 |
---|---|---|
committer | Jared Yanovich <jaredy@cvs.openbsd.org> | 2005-03-25 17:01:05 +0000 |
commit | 9c66b6aa3507568bd250054eabe69121e28d89a8 (patch) | |
tree | 6875c2ca6d3fff66b830b7b2f48631dc743026d2 /usr.bin/netstat/unix.c | |
parent | b3ec4210d69766f5f31f3800f470e51633f41b8f (diff) |
kill unneeded (char *) casts. ok millert, otto
Diffstat (limited to 'usr.bin/netstat/unix.c')
-rw-r--r-- | usr.bin/netstat/unix.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c index daad60ad76c..db47e7e8c54 100644 --- a/usr.bin/netstat/unix.c +++ b/usr.bin/netstat/unix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: unix.c,v 1.11 2004/03/13 22:02:13 deraadt Exp $ */ +/* $OpenBSD: unix.c,v 1.12 2005/03/25 17:01:04 jaredy Exp $ */ /* $NetBSD: unix.c,v 1.13 1995/10/03 21:42:48 thorpej Exp $ */ /*- @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "from: @(#)unix.c 8.1 (Berkeley) 6/6/93"; #else -static char *rcsid = "$OpenBSD: unix.c,v 1.11 2004/03/13 22:02:13 deraadt Exp $"; +static char *rcsid = "$OpenBSD: unix.c,v 1.12 2005/03/25 17:01:04 jaredy Exp $"; #endif #endif /* not lint */ @@ -76,7 +76,7 @@ unixpr(u_long off) char *filebuf; struct protosw *unixsw = (struct protosw *)off; - filebuf = (char *)kvm_getfiles(kvmd, KERN_FILE, 0, &nfiles); + filebuf = kvm_getfiles(kvmd, KERN_FILE, 0, &nfiles); if (filebuf == NULL) { printf("Out of memory (file table).\n"); return; @@ -86,7 +86,7 @@ unixpr(u_long off) for (fp = file; fp < fileNFILE; fp++) { if (fp->f_count == 0 || fp->f_type != DTYPE_SOCKET) continue; - if (kread((u_long)fp->f_data, (char *)so, sizeof (*so))) + if (kread((u_long)fp->f_data, so, sizeof (*so))) continue; /* kludge */ if (so->so_proto >= unixsw && so->so_proto <= unixsw + 2) @@ -106,11 +106,11 @@ unixdomainpr(struct socket *so, caddr_t soaddr) struct sockaddr_un *sa = NULL; static int first = 1; - if (kread((u_long)so->so_pcb, (char *)unp, sizeof (*unp))) + if (kread((u_long)so->so_pcb, unp, sizeof (*unp))) return; if (unp->unp_addr) { m = &mbuf; - if (kread((u_long)unp->unp_addr, (char *)m, sizeof (*m))) + if (kread((u_long)unp->unp_addr, m, sizeof (*m))) m = NULL; sa = (struct sockaddr_un *)(m->m_dat); } else |