commands/crc: changed K&R to ANSI style
Change-Id: Ia63ccbb76e00f18adea414296caef39a3fdf3a39
This commit is contained in:
parent
2a453f1a37
commit
d1c3755dd4
1 changed files with 2 additions and 5 deletions
|
@ -17,9 +17,7 @@ void crc(char *fname);
|
||||||
void crc();
|
void crc();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(argc, argv)
|
int main(int argc, char **argv)
|
||||||
int argc;
|
|
||||||
char **argv;
|
|
||||||
{
|
{
|
||||||
char line[256];
|
char line[256];
|
||||||
|
|
||||||
|
@ -89,8 +87,7 @@ static unsigned short crctab[256] = {
|
||||||
|
|
||||||
#define updcrc(cp, crc) ( crctab[((crc >> 8) & 255)] ^ (crc << 8) ^ cp)
|
#define updcrc(cp, crc) ( crctab[((crc >> 8) & 255)] ^ (crc << 8) ^ cp)
|
||||||
|
|
||||||
void crc(fname)
|
void crc(char *fname)
|
||||||
char *fname;
|
|
||||||
{
|
{
|
||||||
register int c;
|
register int c;
|
||||||
register long len = 0;
|
register long len = 0;
|
||||||
|
|
Loading…
Reference in a new issue