1) Mark usage as dead2.
2) Deregister. 3) New style function definitions. Some WARNS still remain here - some printf format warning on some arches and the compiler can't see that a variable should always be initialised.
This commit is contained in:
parent
02f563767b
commit
77986b3db1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201612
@ -70,17 +70,15 @@ FILE *msg;
|
|||||||
|
|
||||||
void *getspace(int);
|
void *getspace(int);
|
||||||
void intr(int);
|
void intr(int);
|
||||||
static void usage(void);
|
static void usage(void) __dead2;
|
||||||
void verify(int, int, char *);
|
void verify(int, int, char *);
|
||||||
void writeop(int, int);
|
void writeop(int, int);
|
||||||
void rewind_tape(int);
|
void rewind_tape(int);
|
||||||
|
|
||||||
int
|
int
|
||||||
main(argc, argv)
|
main(int argc, char *argv[])
|
||||||
int argc;
|
|
||||||
char *argv[];
|
|
||||||
{
|
{
|
||||||
register int lastnread, nread, nw, inp, outp;
|
int lastnread, nread, nw, inp, outp;
|
||||||
enum {READ, VERIFY, COPY, COPYVERIFY} op = READ;
|
enum {READ, VERIFY, COPY, COPYVERIFY} op = READ;
|
||||||
sig_t oldsig;
|
sig_t oldsig;
|
||||||
int ch, needeof;
|
int ch, needeof;
|
||||||
@ -227,12 +225,10 @@ r1: guesslen = 0;
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
verify(inp, outp, outb)
|
verify(int inp, int outp, char *outb)
|
||||||
register int inp, outp;
|
|
||||||
register char *outb;
|
|
||||||
{
|
{
|
||||||
register int eot, inmaxblk, inn, outmaxblk, outn;
|
int eot, inmaxblk, inn, outmaxblk, outn;
|
||||||
register char *inb;
|
char *inb;
|
||||||
|
|
||||||
inb = getspace(maxblk);
|
inb = getspace(maxblk);
|
||||||
inmaxblk = outmaxblk = maxblk;
|
inmaxblk = outmaxblk = maxblk;
|
||||||
@ -281,8 +277,7 @@ r2: if (inn != outn) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
intr(signo)
|
intr(int signo __unused)
|
||||||
int signo __unused;
|
|
||||||
{
|
{
|
||||||
if (record) {
|
if (record) {
|
||||||
if (record - lastrec > 1)
|
if (record - lastrec > 1)
|
||||||
@ -296,8 +291,7 @@ intr(signo)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void *
|
void *
|
||||||
getspace(blk)
|
getspace(int blk)
|
||||||
int blk;
|
|
||||||
{
|
{
|
||||||
void *bp;
|
void *bp;
|
||||||
|
|
||||||
@ -307,8 +301,7 @@ getspace(blk)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
writeop(fd, type)
|
writeop(int fd, int type)
|
||||||
int fd, type;
|
|
||||||
{
|
{
|
||||||
struct mtop op;
|
struct mtop op;
|
||||||
|
|
||||||
@ -319,7 +312,7 @@ writeop(fd, type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage()
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "usage: tcopy [-cvx] [-s maxblk] [src [dest]]\n");
|
fprintf(stderr, "usage: tcopy [-cvx] [-s maxblk] [src [dest]]\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user