summaryrefslogtreecommitdiffstats
path: root/sys/tools
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-12-13 06:13:52 +0000
committerimp <imp@FreeBSD.org>2004-12-13 06:13:52 +0000
commit6d4f366de6ce1675d72964b3033b37e8b95f508e (patch)
tree6a2750fb6c96c403bd86be055acfeaf55d2c0f9c /sys/tools
parent44b7a6317571bd5ae85d0fd19eaeb632f1f963c4 (diff)
downloadFreeBSD-src-6d4f366de6ce1675d72964b3033b37e8b95f508e.zip
FreeBSD-src-6d4f366de6ce1675d72964b3033b37e8b95f508e.tar.gz
Cast from the specific vop_*_args to vop_generic_args via a (void *)
pointer to eliminate the hundreds of warnings that we have in tree at the moment. # Chances are good that all the struct vop_*_args should have, as its # first element, the struct vop_generic_args, and when necessary to # reference it, we just take its address rather than going through # this double case.
Diffstat (limited to 'sys/tools')
-rw-r--r--sys/tools/vnode_if.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk
index 4e21f23..037f599 100644
--- a/sys/tools/vnode_if.awk
+++ b/sys/tools/vnode_if.awk
@@ -324,7 +324,7 @@ while ((getline < srcfile) > 0) {
printh("\t\tif (vop->"name" != NULL)")
printh("\t\t\trc = vop->"name"(&a);")
printh("\t\telse")
- printh("\t\t\trc = vop->vop_bypass((struct vop_generic_args *)&a);")
+ printh("\t\t\trc = vop->vop_bypass((struct vop_generic_args *)(void *)&a);")
printh("\t}")
printh(ctrstr);
printh("if (rc == 0) {");
OpenPOWER on IntegriCloud