diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-06-14 08:08:26 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-06-14 08:08:26 +0000 |
commit | 6aea263a2ef5d13b7fb750401d30f7a41e9c5229 (patch) | |
tree | f0573ad2b0f1cf6a4791e4b42a3e49e6af8f314a /ax25ipd/crc.c | |
parent | 627d9a90cf98a7cc083e80798accaf18337f0afa (diff) |
Convert K&R-style function definitions to function prototypes.
Diffstat (limited to 'ax25ipd/crc.c')
-rw-r--r-- | ax25ipd/crc.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/ax25ipd/crc.c b/ax25ipd/crc.c index f6fc565..b90bde0 100644 --- a/ax25ipd/crc.c +++ b/ax25ipd/crc.c @@ -70,10 +70,7 @@ static u16 fcstab[256] = { /* * Calculate a new fcs given the current fcs and the new data. */ -u16 pppfcs(fcs, cp, len) -register u16 fcs; -register unsigned char *cp; -register int len; +u16 pppfcs(register u16 fcs, register unsigned char *cp, register int len) { /* ASSERT(sizeof (u16) == 2); */ /* ASSERT(((u16) -1) > 0); */ @@ -94,9 +91,7 @@ register int len; */ /* Return the computed CRC */ -unsigned short int compute_crc(buf, l) -unsigned char *buf; -int l; +unsigned short int compute_crc(unsigned char *buf, int l) { int fcs; @@ -107,9 +102,7 @@ int l; } /* Return true if the CRC is correct */ -int ok_crc(buf, l) -unsigned char *buf; -int l; +int ok_crc(unsigned char *buf, int l) { int fcs; @@ -125,7 +118,7 @@ int l; */ #ifdef TEST -void main() +void main(int argc, char *argv[]) { unsigned char buf[258]; int l, i; |