From: Beletti Date: Wed, 20 Nov 2013 22:43:51 +0000 (+0000) Subject: commands/crc: changed K&R to ANSI style X-Git-Tag: v3.3.0~666 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/index.css?a=commitdiff_plain;h=d1c3755dd4e3a03b9a5b7171ad82a47f965be579;p=minix.git commands/crc: changed K&R to ANSI style Change-Id: Ia63ccbb76e00f18adea414296caef39a3fdf3a39 --- diff --git a/commands/crc/crc.c b/commands/crc/crc.c index adf32c157..9e914cf0d 100644 --- a/commands/crc/crc.c +++ b/commands/crc/crc.c @@ -17,9 +17,7 @@ void crc(char *fname); void crc(); #endif -int main(argc, argv) -int argc; -char **argv; +int main(int argc, char **argv) { char line[256]; @@ -89,8 +87,7 @@ static unsigned short crctab[256] = { #define updcrc(cp, crc) ( crctab[((crc >> 8) & 255)] ^ (crc << 8) ^ cp) -void crc(fname) -char *fname; +void crc(char *fname) { register int c; register long len = 0;