summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-06-14 08:48:52 +0000
committerRalf Baechle <ralf@linux-mips.org>2009-06-14 08:48:52 +0000
commitcd98bf42c5ab3cb061a32068d866616c71c40bf9 (patch)
tree3237238ec7bd2cca3adeb4e47f6cd9c372ae9d2c
parent6aea263a2ef5d13b7fb750401d30f7a41e9c5229 (diff)
Eleminate use of register keyword
Any modern C compiler will just ignore register so it's just cluttering the screen.
-rw-r--r--ax25ipd/ax25ipd.h2
-rw-r--r--ax25ipd/crc.c2
-rw-r--r--listen/nrdump.c4
3 files changed, 4 insertions, 4 deletions
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); */
diff --git a/listen/nrdump.c b/listen/nrdump.c
index 419c8e8..b813633 100644
--- a/listen/nrdump.c
+++ b/listen/nrdump.c
@@ -1,4 +1,4 @@
-/* @(#) $Header: /home/ax25-cvs/ax25-apps/listen/nrdump.c,v 1.3 2001/11/27 04:57:43 csmall Exp $ */
+/* @(#) $Header: /home/ax25-cvs/ax25-apps/listen/nrdump.c,v 1.4 2009/06/14 08:48:52 ralf Exp $ */
/* NET/ROM header tracing routines
* Copyright 1991 Phil Karn, KA9Q
@@ -74,7 +74,7 @@ static void netrom_inp_dump(unsigned char *data, int length)
void netrom_dump(unsigned char *data, int length, int hexdump, int type)
{
char tmp[15];
- register int i;
+ int i;
/* See if it is a routing broadcast */
if (data[0] == NR3NODESIG) {