From 5203a0a465a65bd5e6e40b6364bb0dbe05feb7cf Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 2 Feb 2002 06:24:13 +0000 Subject: o __P has been reoved o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. Approved by: arch@, new style(9) --- bin/dd/conv.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/dd/conv.c') diff --git a/bin/dd/conv.c b/bin/dd/conv.c index 0987a67..5b56c57 100644 --- a/bin/dd/conv.c +++ b/bin/dd/conv.c @@ -58,7 +58,7 @@ static const char rcsid[] = * Worst case buffer calculation is (ibs + obs - 1). */ void -def() +def(void) { u_char *inp; const u_char *t; @@ -87,7 +87,7 @@ def() } void -def_close() +def_close(void) { /* Just update the count, everything is already in the buffer. */ if (in.dbcnt) @@ -102,7 +102,7 @@ def_close() * max out buffer: obs + cbsz */ void -block() +block(void) { u_char *inp, *outp; const u_char *t; @@ -188,7 +188,7 @@ block() } void -block_close() +block_close(void) { /* * Copy any remaining data into the output buffer and pad to a record. @@ -215,7 +215,7 @@ block_close() * max out buffer: obs + cbsz */ void -unblock() +unblock(void) { u_char *inp; const u_char *t; @@ -249,7 +249,7 @@ unblock() } void -unblock_close() +unblock_close(void) { u_char *t; size_t cnt; -- cgit v1.1