From cd98bf42c5ab3cb061a32068d866616c71c40bf9 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 14 Jun 2009 08:48:52 +0000 Subject: Eleminate use of register keyword Any modern C compiler will just ignore register so it's just cluttering the screen. --- ax25ipd/ax25ipd.h | 2 +- ax25ipd/crc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ax25ipd') diff --git a/ax25ipd/ax25ipd.h b/ax25ipd/ax25ipd.h index df16141..06efd58 100644 --- a/ax25ipd/ax25ipd.h +++ b/ax25ipd/ax25ipd.h @@ -169,7 +169,7 @@ int io_error(int, unsigned char *, int, int, int, int); /* crc.c */ unsigned short int compute_crc(unsigned char *, int); -unsigned short int pppfcs(register unsigned short, register unsigned char *, register int); +unsigned short int pppfcs(unsigned short, unsigned char *, int); unsigned short int compute_crc(unsigned char *, int); int ok_crc(unsigned char *, int); diff --git a/ax25ipd/crc.c b/ax25ipd/crc.c index b90bde0..d132968 100644 --- a/ax25ipd/crc.c +++ b/ax25ipd/crc.c @@ -70,7 +70,7 @@ static u16 fcstab[256] = { /* * Calculate a new fcs given the current fcs and the new data. */ -u16 pppfcs(register u16 fcs, register unsigned char *cp, register int len) +u16 pppfcs(u16 fcs, unsigned char *cp, int len) { /* ASSERT(sizeof (u16) == 2); */ /* ASSERT(((u16) -1) > 0); */ -- cgit v1.2.3