Commit 7eb7f94c authored by Paul Mackerras's avatar Paul Mackerras

PPC32: Convert some K&R-style functions to ANSI-style. From Steven Cole.

parent 9d0f5605
This diff is collapsed.
...@@ -356,7 +356,7 @@ at_breakpoint(unsigned pc) ...@@ -356,7 +356,7 @@ at_breakpoint(unsigned pc)
} }
static void static void
insert_bpts() insert_bpts(void)
{ {
int i; int i;
struct bpt *bp; struct bpt *bp;
...@@ -382,7 +382,7 @@ insert_bpts() ...@@ -382,7 +382,7 @@ insert_bpts()
} }
static void static void
remove_bpts() remove_bpts(void)
{ {
int i; int i;
struct bpt *bp; struct bpt *bp;
...@@ -843,7 +843,7 @@ backtrace(struct pt_regs *excp) ...@@ -843,7 +843,7 @@ backtrace(struct pt_regs *excp)
} }
int int
getsp() getsp(void)
{ {
int x; int x;
...@@ -969,7 +969,7 @@ print_sysmap(void) ...@@ -969,7 +969,7 @@ print_sysmap(void)
} }
void void
super_regs() super_regs(void)
{ {
int i, cmd; int i, cmd;
unsigned val; unsigned val;
...@@ -1019,7 +1019,7 @@ super_regs() ...@@ -1019,7 +1019,7 @@ super_regs()
#ifndef CONFIG_PPC_STD_MMU #ifndef CONFIG_PPC_STD_MMU
static void static void
dump_hash_table() dump_hash_table(void)
{ {
printf("This CPU doesn't have a hash table.\n"); printf("This CPU doesn't have a hash table.\n");
} }
...@@ -1149,7 +1149,7 @@ static unsigned hash_start; ...@@ -1149,7 +1149,7 @@ static unsigned hash_start;
static unsigned hash_end; static unsigned hash_end;
static void static void
dump_hash_table() dump_hash_table(void)
{ {
int seg; int seg;
unsigned seg_start, seg_end; unsigned seg_start, seg_end;
...@@ -1271,7 +1271,7 @@ static int brev; ...@@ -1271,7 +1271,7 @@ static int brev;
static int mnoread; static int mnoread;
void void
memex() memex(void)
{ {
int cmd, inc, i, nslash; int cmd, inc, i, nslash;
unsigned n; unsigned n;
...@@ -1408,7 +1408,7 @@ memex() ...@@ -1408,7 +1408,7 @@ memex()
} }
int int
bsesc() bsesc(void)
{ {
int c; int c;
...@@ -1423,7 +1423,7 @@ bsesc() ...@@ -1423,7 +1423,7 @@ bsesc()
} }
void void
dump() dump(void)
{ {
int c; int c;
...@@ -1522,8 +1522,7 @@ ppc_inst_dump(unsigned adr, int count) ...@@ -1522,8 +1522,7 @@ ppc_inst_dump(unsigned adr, int count)
} }
void void
print_address(addr) print_address(unsigned addr)
unsigned addr;
{ {
printf("0x%x", addr); printf("0x%x", addr);
} }
...@@ -1582,7 +1581,7 @@ static unsigned mend; ...@@ -1582,7 +1581,7 @@ static unsigned mend;
static unsigned mask; static unsigned mask;
void void
memlocate() memlocate(void)
{ {
unsigned a, n; unsigned a, n;
unsigned char val[4]; unsigned char val[4];
...@@ -1615,7 +1614,7 @@ static unsigned mskip = 0x1000; ...@@ -1615,7 +1614,7 @@ static unsigned mskip = 0x1000;
static unsigned mlim = 0xffffffff; static unsigned mlim = 0xffffffff;
void void
memzcan() memzcan(void)
{ {
unsigned char v; unsigned char v;
unsigned a; unsigned a;
...@@ -1679,7 +1678,7 @@ void proccall(void) ...@@ -1679,7 +1678,7 @@ void proccall(void)
/* Input scanning routines */ /* Input scanning routines */
int int
skipbl() skipbl(void)
{ {
int c; int c;
...@@ -1704,8 +1703,7 @@ static char *regnames[N_PTREGS] = { ...@@ -1704,8 +1703,7 @@ static char *regnames[N_PTREGS] = {
}; };
int int
scanhex(vp) scanhex(unsigned *vp)
unsigned *vp;
{ {
int c, d; int c, d;
unsigned v; unsigned v;
...@@ -1776,7 +1774,7 @@ unsigned *vp; ...@@ -1776,7 +1774,7 @@ unsigned *vp;
} }
void void
scannl() scannl(void)
{ {
int c; int c;
...@@ -1786,8 +1784,7 @@ scannl() ...@@ -1786,8 +1784,7 @@ scannl()
c = inchar(); c = inchar();
} }
int int hexdigit(int c)
hexdigit(c)
{ {
if( '0' <= c && c <= '9' ) if( '0' <= c && c <= '9' )
return c - '0'; return c - '0';
...@@ -1819,13 +1816,13 @@ static char line[256]; ...@@ -1819,13 +1816,13 @@ static char line[256];
static char *lineptr; static char *lineptr;
void void
flush_input() flush_input(void)
{ {
lineptr = NULL; lineptr = NULL;
} }
int int
inchar() inchar(void)
{ {
if (lineptr == NULL || *lineptr == 0) { if (lineptr == NULL || *lineptr == 0) {
if (fgets(line, sizeof(line), stdin) == NULL) { if (fgets(line, sizeof(line), stdin) == NULL) {
...@@ -1838,8 +1835,7 @@ inchar() ...@@ -1838,8 +1835,7 @@ inchar()
} }
void void
take_input(str) take_input(char *str)
char *str;
{ {
lineptr = str; lineptr = str;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment