aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vac/unvac.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-06-14 14:29:24 -0400
committerRuss Cox <rsc@swtch.com>2008-06-14 14:29:24 -0400
commitc52cda306150e366fe27b9297baeff6a7449a47d (patch)
tree2d614296f9e8036eecb3e7c5560649b64e8ae9ea /src/cmd/vac/unvac.c
parent233feb69cf7434f907fbcb9cf5b47f2e76b67fee (diff)
downloadplan9port-c52cda306150e366fe27b9297baeff6a7449a47d.tar.gz
plan9port-c52cda306150e366fe27b9297baeff6a7449a47d.tar.bz2
plan9port-c52cda306150e366fe27b9297baeff6a7449a47d.zip
vac: cleanup
Diffstat (limited to 'src/cmd/vac/unvac.c')
-rw-r--r--src/cmd/vac/unvac.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/cmd/vac/unvac.c b/src/cmd/vac/unvac.c
index a2ac2155..24165ae1 100644
--- a/src/cmd/vac/unvac.c
+++ b/src/cmd/vac/unvac.c
@@ -1,7 +1,5 @@
#include "stdinc.h"
-#include <auth.h>
-#include <fcall.h>
-#include <thread.h>
+#include <fcall.h> /* dirmodefmt */
#include "vac.h"
VacFs *fs;
@@ -35,7 +33,7 @@ threadmain(int argc, char *argv[])
fmtinstall('H', encodefmt);
fmtinstall('V', vtscorefmt);
fmtinstall('F', vtfcallfmt);
- fmtinstall('T', mtimefmt);
+ fmtinstall('t', mtimefmt);
fmtinstall('M', dirmodefmt);
host = nil;
@@ -141,7 +139,8 @@ void
unvac(VacFile *f, char *name, VacDir *vdir)
{
static char buf[65536];
- int fd, mode, n, mode9;
+ int fd, n;
+ ulong mode, mode9;
char *newname;
char *what;
vlong off;
@@ -175,7 +174,7 @@ unvac(VacFile *f, char *name, VacDir *vdir)
mode9 |= DMSETGID;
if(mode&ModeDevice)
mode9 |= DMDEVICE;
- print("%M %-10s %-10s %11lld %T %s\n",
+ print("%M %-10s %-10s %11lld %t %s\n",
mode9, vdir->uid, vdir->gid, vdir->size,
vdir->mtime, name);
}else