diff options
Diffstat (limited to 'usr.bin/tcopy/tcopy.c')
-rw-r--r-- | usr.bin/tcopy/tcopy.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/usr.bin/tcopy/tcopy.c b/usr.bin/tcopy/tcopy.c index 49f7cc2274e..4771768d28e 100644 --- a/usr.bin/tcopy/tcopy.c +++ b/usr.bin/tcopy/tcopy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcopy.c,v 1.8 2003/06/03 02:56:17 millert Exp $ */ +/* $OpenBSD: tcopy.c,v 1.9 2003/06/10 22:20:53 deraadt Exp $ */ /* $NetBSD: tcopy.c,v 1.5 1997/04/15 07:23:08 lukem Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)tcopy.c 8.3 (Berkeley) 1/23/95"; #endif -static char rcsid[] = "$OpenBSD: tcopy.c,v 1.8 2003/06/03 02:56:17 millert Exp $"; +static char rcsid[] = "$OpenBSD: tcopy.c,v 1.9 2003/06/10 22:20:53 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -73,9 +73,7 @@ void verify(int, int, char *); void writeop(int, int); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int ch, needeof, nw, inp, outp; ssize_t lastnread, nread; @@ -230,9 +228,7 @@ r1: guesslen = 0; } void -verify(inp, outp, outb) - int inp, outp; - char *outb; +verify(int inp, int outp, char *outb) { int eot, inmaxblk, inn, outmaxblk, outn; char *inb; @@ -286,8 +282,7 @@ r2: if (inn != outn) { } void -intr(signo) - int signo; +intr(int signo) { if (record) { if (record - lastrec > 1) @@ -301,8 +296,7 @@ intr(signo) } void * -getspace(blk) - int blk; +getspace(int blk) { void *bp; @@ -313,8 +307,7 @@ getspace(blk) } void -writeop(fd, type) - int fd, type; +writeop(int fd, int type) { struct mtop op; @@ -325,7 +318,7 @@ writeop(fd, type) } void -usage() +usage(void) { fprintf(stderr, "usage: tcopy [-cvx] [-s maxblk] src [dest]\n"); |