aboutsummaryrefslogtreecommitdiff
path: root/src/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libdiskfs')
-rw-r--r--src/libdiskfs/file.c4
-rw-r--r--src/libdiskfs/venti.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libdiskfs/file.c b/src/libdiskfs/file.c
index b72f053d..6843e341 100644
--- a/src/libdiskfs/file.c
+++ b/src/libdiskfs/file.c
@@ -2,6 +2,8 @@
#include <libc.h>
#include <diskfs.h>
+int nfilereads;
+
typedef struct DiskFile DiskFile;
struct DiskFile
{
@@ -9,8 +11,6 @@ struct DiskFile
int fd;
};
-int nfilereads;
-
static long
preadn(int fd, void *vdata, u32int ulen, u64int offset)
{
diff --git a/src/libdiskfs/venti.c b/src/libdiskfs/venti.c
index ba314388..5d8528c2 100644
--- a/src/libdiskfs/venti.c
+++ b/src/libdiskfs/venti.c
@@ -13,7 +13,7 @@ struct DiskVenti
VtCache *c;
};
-int nfilereads;
+extern int nfilereads;
/*
* This part is like file.c but doesn't require storing the root block