tFix vacfilegetmode. - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit df4bcf4686200101b2cca8698d7c985ee4dcc09a
parent 715e3ca6413781cb782b2ff65c283012a755577b
Author: rsc 
Date:   Tue, 13 Sep 2005 02:56:00 +0000

Fix vacfilegetmode.

Diffstat:
  M src/cmd/vac/file.c                  |       6 ------
  M src/cmd/vac/vac.h                   |       2 +-

2 files changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/src/cmd/vac/file.c b/src/cmd/vac/file.c
t@@ -993,12 +993,6 @@ vacfileisdir(VacFile *f)
 }
 
 int
-vacfilegetmode(VacFile *f)
-{
-        return f->dir.mode;
-}
-
-int
 vacfileisroot(VacFile *f)
 {
         return f == f->fs->root;
diff --git a/src/cmd/vac/vac.h b/src/cmd/vac/vac.h
t@@ -122,7 +122,7 @@ uvlong        vacfilegetid(VacFile *file);
 ulong        vacfilegetmcount(VacFile *file);
 int                vacfileisdir(VacFile *file);
 int                vacfileisroot(VacFile *file);
-int                vacfilegetmode(VacFile *file);
+ulong        vacfilegetmode(VacFile *file);
 int                vacfilegetblocksize(VacFile *file, u32int bn, u8int *score);
 int                vacfilegetsize(VacFile *file, uvlong *size);
 int                vacfilegetdir(VacFile *file, VacDir *dir);