summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/procfs/procfs_subr.c
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2003-08-11 10:08:04 +0000
committermickey <mickey@openbsd.org>2003-08-11 10:08:04 +0000
commitc57f113d16e74fd9f2001bed0cad355a40bb74d6 (patch)
tree3c3ad928c380ba6453478e802be726a75a60ba91 /sys/miscfs/procfs/procfs_subr.c
parentconstify constant consts (diff)
downloadwireguard-openbsd-c57f113d16e74fd9f2001bed0cad355a40bb74d6.tar.xz
wireguard-openbsd-c57f113d16e74fd9f2001bed0cad355a40bb74d6.zip
constify constant names
Diffstat (limited to 'sys/miscfs/procfs/procfs_subr.c')
-rw-r--r--sys/miscfs/procfs/procfs_subr.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c
index 5398c4e4134..38723b253b4 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.19 2003/06/02 23:28:11 millert Exp $ */
+/* $OpenBSD: procfs_subr.c,v 1.20 2003/08/11 10:08:04 mickey Exp $ */
/* $NetBSD: procfs_subr.c,v 1.15 1996/02/12 15:01:42 christos Exp $ */
/*
@@ -298,16 +298,15 @@ vfs_getuserstr(uio, buf, buflenp)
return (0);
}
-vfs_namemap_t *
+const vfs_namemap_t *
vfs_findname(nm, buf, buflen)
- vfs_namemap_t *nm;
+ const vfs_namemap_t *nm;
char *buf;
int buflen;
{
for (; nm->nm_name; nm++)
- if (bcmp((const void *) buf, (const void *) nm->nm_name,
- buflen + 1) == 0)
+ if (bcmp(buf, nm->nm_name, buflen + 1) == 0)
return (nm);
return (0);