From 0f917fe9ea8b58b39ab4d249517a00975e66935c Mon Sep 17 00:00:00 2001 From: millert Date: Sun, 6 Apr 1997 07:00:14 +0000 Subject: [PATCH] Fix improper cast (compiler warning). --- sys/miscfs/procfs/procfs_subr.c | 5 +++-- 1 file 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); -- 2.20.1