diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-06 07:00:15 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-06 07:00:15 +0000 |
commit | 74b742ab98349c7c7425a82020573cec5165f378 (patch) | |
tree | 2972eac2ca5277012b6c621d77f993c5385a5b96 /sys | |
parent | 38a4fe5c6f4cf0f7b24cb2b976723cdb07d79f71 (diff) |
Fix improper cast (compiler warning).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/miscfs/procfs/procfs_subr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c index 1aae32931e2..46ddd5d8328 100644 --- a/sys/miscfs/procfs/procfs_subr.c +++ b/sys/miscfs/procfs/procfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs_subr.c,v 1.4 1996/07/02 06:52:03 niklas Exp $ */ +/* $OpenBSD: procfs_subr.c,v 1.5 1997/04/06 07:00:14 millert Exp $ */ /* $NetBSD: procfs_subr.c,v 1.15 1996/02/12 15:01:42 christos Exp $ */ /* @@ -302,7 +302,8 @@ vfs_findname(nm, buf, buflen) { for (; nm->nm_name; nm++) - if (bcmp(buf, (char *) nm->nm_name, buflen+1) == 0) + if (bcmp((const void *) buf, (const void *) nm->nm_name, + buflen + 1) == 0) return (nm); return (0); |