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.
This commit is contained in:
imp 2004-12-13 06:13:52 +00:00
parent 44b7a63175
commit 6d4f366de6

View File

@ -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) {");