artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b680b4
)
Fix improper cast (compiler warning).
author
millert
<millert@openbsd.org>
Sun, 6 Apr 1997 07:00:14 +0000
(07:00 +0000)
committer
millert
<millert@openbsd.org>
Sun, 6 Apr 1997 07:00:14 +0000
(07:00 +0000)
sys/miscfs/procfs/procfs_subr.c
patch
|
blob
|
history
diff --git
a/sys/miscfs/procfs/procfs_subr.c
b/sys/miscfs/procfs/procfs_subr.c
index
1aae329
..
46ddd5d
100644
(file)
--- 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);