From 4311136125a3e2f114c14158ff613fa2d3ebe540 Mon Sep 17 00:00:00 2001 From: Thomas Veerman Date: Mon, 14 Nov 2011 14:21:39 +0000 Subject: [PATCH] Fix compiler warnings --- lib/libpuffs/pnode.c | 2 ++ lib/libpuffs/protect.c | 2 -- lib/libpuffs/time.c | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) 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);