aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/tapefs
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-25 13:09:29 +0000
committerrsc <devnull@localhost>2006-02-25 13:09:29 +0000
commit58ecf38778c87173edd5df82ef8b2f61927b0908 (patch)
tree8b5522caf35c8f88e06dfa9f2e2edda894f7186e /src/cmd/tapefs
parent64f7506b34106955fbbd5f6bf944ecd839610672 (diff)
downloadplan9port-58ecf38778c87173edd5df82ef8b2f61927b0908.tar.gz
plan9port-58ecf38778c87173edd5df82ef8b2f61927b0908.tar.bz2
plan9port-58ecf38778c87173edd5df82ef8b2f61927b0908.zip
fixes
Diffstat (limited to 'src/cmd/tapefs')
-rw-r--r--src/cmd/tapefs/fs.c2
-rw-r--r--src/cmd/tapefs/tapefs.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/tapefs/fs.c b/src/cmd/tapefs/fs.c
index 66abe366..2d596a3c 100644
--- a/src/cmd/tapefs/fs.c
+++ b/src/cmd/tapefs/fs.c
@@ -77,7 +77,7 @@ main(int argc, char *argv[])
fmtinstall('F', fcallfmt);
- defmnt = "/n/tapefs";
+ defmnt = "tapefs";
ARGBEGIN{
case 'm':
defmnt = ARGF();
diff --git a/src/cmd/tapefs/tapefs.h b/src/cmd/tapefs/tapefs.h
index ae5e1844..bfe75937 100644
--- a/src/cmd/tapefs/tapefs.h
+++ b/src/cmd/tapefs/tapefs.h
@@ -3,6 +3,7 @@
#define g2byte(x) (((x)[1]<<8) + (x)[0]) /* little-endian */
#define g3byte(x) (((x)[2]<<16) + ((x)[1]<<8) + (x)[0])
#define g4byte(x) (((x)[3]<<24) + ((x)[2]<<16) + ((x)[1]<<8) + (x)[0])
+#define g8byte(x) (((vlong)g4byte(x)<<32) | (u32int)g4byte(x+4))
enum
{
@@ -42,7 +43,7 @@ struct Ram
char *group;
vlong addr;
void *data;
- long ndata;
+ vlong ndata;
};
enum