diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/tar.c | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/tar.c')
-rw-r--r-- | src/cmd/tar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/tar.c b/src/cmd/tar.c index 1306ed41..c863aff2 100644 --- a/src/cmd/tar.c +++ b/src/cmd/tar.c @@ -56,7 +56,7 @@ enum { Nblock = 40, /* maximum blocksize */ Dblock = 20, /* default blocksize */ - DEBUG = 0, + DEBUG = 0 }; /* POSIX link flags */ @@ -70,7 +70,7 @@ enum { LF_BLK = '4', LF_DIR = '5', LF_FIFO = '6', - LF_CONTIG = '7', + LF_CONTIG = '7' /* 'A' - 'Z' are reserved for custom implementations */ }; @@ -625,7 +625,7 @@ mkhdr(Hdr *hp, Dir *dir, char *file) printed = 1; fprint(2, "%s: storing large sizes in \"base 256\"\n", argv0); } - hp->size[0] = Binsize; + hp->size[0] = (char)Binsize; /* emit so-called `base 256' representation of size */ putbe((uchar *)hp->size+1, dir->length, sizeof hp->size - 2); hp->size[sizeof hp->size - 1] = ' '; |