diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-11 23:42:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-11 23:42:13 +0000 |
commit | b7e43e8440a0d47510d40dd5d9440dccf52a05f2 (patch) | |
tree | 20886296c48f50f9e7f28003e17761fd8acd14e0 /bin/dd/dd.c | |
parent | a760a3046bfab4c3721cea25480d9f998d1cf0e8 (diff) |
ansification, art ok
Diffstat (limited to 'bin/dd/dd.c')
-rw-r--r-- | bin/dd/dd.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c index 5d9afb3a993..08bf99a65fc 100644 --- a/bin/dd/dd.c +++ b/bin/dd/dd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dd.c,v 1.13 2003/06/02 23:32:07 millert Exp $ */ +/* $OpenBSD: dd.c,v 1.14 2003/06/11 23:42:12 deraadt Exp $ */ /* $NetBSD: dd.c,v 1.6 1996/02/20 19:29:06 jtc Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: dd.c,v 1.13 2003/06/02 23:32:07 millert Exp $"; +static char rcsid[] = "$OpenBSD: dd.c,v 1.14 2003/06/11 23:42:12 deraadt Exp $"; #endif #endif /* not lint */ @@ -81,9 +81,7 @@ size_t files_cnt = 1; /* # of files to copy */ const u_char *ctab; /* conversion table */ int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { jcl(argv); setup(); @@ -103,7 +101,7 @@ main(argc, argv) } static void -setup() +setup(void) { u_int cnt; @@ -209,8 +207,7 @@ setup() } static void -getfdtype(io) - IO *io; +getfdtype(IO *io) { struct mtget mt; struct stat sb; @@ -224,7 +221,7 @@ getfdtype(io) } static void -dd_in() +dd_in(void) { ssize_t n; @@ -323,7 +320,7 @@ dd_in() * is truncated. */ static void -dd_close() +dd_close(void) { if (cfunc == def) def_close(); @@ -343,8 +340,7 @@ dd_close() } void -dd_out(force) - int force; +dd_out(int force) { static int warned; size_t cnt, n; |