commands/crc: changed K&R to ANSI style

Change-Id: Ia63ccbb76e00f18adea414296caef39a3fdf3a39
This commit is contained in:
Beletti 2013-11-20 22:43:51 +00:00 committed by Thomas Cort
parent 2a453f1a37
commit d1c3755dd4

View file

@ -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;