Date: Wed, 27 Oct 2010 08:23:30 +0200 From: Lars Hartmann <lars@chaotika.org> To: freebsd-hackers@freebsd.org Subject: [PATCH] Fix 'implicit declaration' warning and update vgone(9) Message-ID: <1288160610.4280.18.camel@apollon>
next in thread | raw e-mail | index | archive | help
--=-PROci6iyh13rFY44Y7HR Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit The vgonel function isnt declarated in any header, the vgonel prototype in vgone(9) isnt correct - found by Ben Kaduk <kaduk@mit.edu> -- Lars Hartmann <lars@chaotika.org> --=-PROci6iyh13rFY44Y7HR Content-Disposition: attachment; filename="vgone.9.patch" Content-Type: text/x-patch; name="vgone.9.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit fixed vgonel prototype in vgone.9 - found by Ben Kaduk <kaduk@mit.edu> From: Lars Hartmann <lars@chaotika.org> --- share/man/man9/vgone.9 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/share/man/man9/vgone.9 b/share/man/man9/vgone.9 index fa30c1e..a23d468 100644 --- a/share/man/man9/vgone.9 +++ b/share/man/man9/vgone.9 @@ -38,7 +38,7 @@ .Ft void .Fn vgone "struct vnode *vp" .Ft void -.Fn vgonel "struct vnode *vp" "struct thread *td" +.Fn vgonel "struct vnode *vp" .Sh DESCRIPTION .Fn vgone and --=-PROci6iyh13rFY44Y7HR Content-Disposition: attachment; filename="vgonel.patch" Content-Type: text/x-patch; name="vgonel.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit fix implicit declaration warning - found by Ben Kaduk <kaduk@mit.edu> From: Lars Hartmann <lars@chaotika.org> --- sys/sys/vnode.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index e82f8ea..8ec8d1f 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -626,6 +626,7 @@ void vdestroy(struct vnode *); int vflush(struct mount *mp, int rootrefs, int flags, struct thread *td); int vget(struct vnode *vp, int lockflag, struct thread *td); void vgone(struct vnode *vp); +void vgone(struct vnode *vp); void vhold(struct vnode *); void vholdl(struct vnode *); int vinvalbuf(struct vnode *vp, int save, int slpflag, int slptimeo); --=-PROci6iyh13rFY44Y7HR--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1288160610.4280.18.camel>