diff options
author | 1997-04-06 07:00:14 +0000 | |
---|---|---|
committer | 1997-04-06 07:00:14 +0000 | |
commit | 0f917fe9ea8b58b39ab4d249517a00975e66935c (patch) | |
tree | 4419e2869bd1235f90a6857b90c2d3976fdfd8e0 /sys/miscfs/procfs/procfs_subr.c | |
parent | Add CD9660 now that it works. (diff) | |
download | wireguard-openbsd-0f917fe9ea8b58b39ab4d249517a00975e66935c.tar.xz wireguard-openbsd-0f917fe9ea8b58b39ab4d249517a00975e66935c.zip |
Fix improper cast (compiler warning).
Diffstat (limited to 'sys/miscfs/procfs/procfs_subr.c')
-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); |