From: Thomas Veerman Date: Mon, 14 Nov 2011 14:21:39 +0000 (+0000) Subject: Fix compiler warnings X-Git-Tag: v3.2.0~257 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch10.html?a=commitdiff_plain;h=4311136125a3e2f114c14158ff613fa2d3ebe540;p=minix.git Fix compiler warnings --- diff --git a/lib/libpuffs/pnode.c b/lib/libpuffs/pnode.c index b0e665f9c..c135dddeb 100644 --- a/lib/libpuffs/pnode.c +++ b/lib/libpuffs/pnode.c @@ -30,6 +30,7 @@ __RCSID("$NetBSD: pnode.c,v 1.10 2008/08/12 19:44:39 pooka Exp $"); #endif /* !lint */ +#include #include #include @@ -39,6 +40,7 @@ __RCSID("$NetBSD: pnode.c,v 1.10 2008/08/12 19:44:39 pooka Exp $"); #include "puffs.h" #include "puffs_priv.h" +#include "proto.h" /* * Well, you're probably wondering why this isn't optimized. diff --git a/lib/libpuffs/protect.c b/lib/libpuffs/protect.c index 48043ff3d..04f7173f0 100644 --- a/lib/libpuffs/protect.c +++ b/lib/libpuffs/protect.c @@ -17,7 +17,6 @@ FORWARD _PROTOTYPE( int in_group, (gid_t grp) ); PUBLIC int fs_chmod() { /* Perform the chmod(name, mode) system call. */ - int r; struct puffs_node *pn; mode_t mode; struct vattr va; @@ -52,7 +51,6 @@ PUBLIC int fs_chmod() *===========================================================================*/ PUBLIC int fs_chown() { - int r; struct puffs_node *pn; struct vattr va; PUFFS_MAKECRED(pcr, &global_kcred); diff --git a/lib/libpuffs/time.c b/lib/libpuffs/time.c index 09eec3de7..26b1b3cc0 100644 --- a/lib/libpuffs/time.c +++ b/lib/libpuffs/time.c @@ -16,7 +16,6 @@ *===========================================================================*/ PUBLIC int fs_utime() { - int r; struct puffs_node *pn; struct vattr va; PUFFS_MAKECRED(pcr, &global_kcred);