Mercurial > hg > forks > dxa
diff scan.c @ 2:ec2f8f6f1dc9
Cleanup pass #1: Get rid of some ancient K&R-isms.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 24 Feb 2015 20:28:57 +0200 |
parents | cfcae2ef1c2b |
children | 987c90810883 |
line wrap: on
line diff
--- a/scan.c Tue Feb 24 18:54:50 2015 +0200 +++ b/scan.c Tue Feb 24 20:28:57 2015 +0200 @@ -35,18 +35,8 @@ #include "opcodes.h" #include "options.h" -int ScanSure PROTO((ADDR_T scanstart)); -int ScanPotential PROTO((ADDR_T scanstart)); -void UnDoScan PROTO((ADDR_T scanstart)); -void DeleteSuspectedParents PROTO((ADDR_T child)); -#ifndef __STDC__ -int -ScanSure (scanstart) - ADDR_T scanstart; -#else int ScanSure (ADDR_T scanstart) -#endif { ADDR_T address, addr; opcodes *instr; @@ -297,13 +287,8 @@ return 0; } -#ifndef __STDC__ -int -ScanPotential (scanstart) - ADDR_T scanstart; -#else + int ScanPotential (ADDR_T scanstart) -#endif { ADDR_T address, addr; opcodes *instr; @@ -574,12 +559,8 @@ return 1; } -#ifndef __STDC__ -int -ScanSpecified () -#else + int ScanSpecified (void) -#endif { table *entry; @@ -604,13 +585,8 @@ return 0; } -#ifndef __STDC__ -void -UnDoScan (scanstart) - ADDR_T scanstart; -#else + void UnDoScan (ADDR_T scanstart) -#endif { opcodes *instr; unsigned counter; @@ -648,13 +624,8 @@ } } -#ifndef __STDC__ -void -DeleteSuspectedParents (child) - ADDR_T child; -#else + void DeleteSuspectedParents (ADDR_T child) -#endif { table *entry = NULL; @@ -686,12 +657,8 @@ UnDoScan (child); } -#ifndef __STDC__ -void -ScanPotentials () -#else + void ScanPotentials (void) -#endif { table *entry; ADDR_T address; @@ -781,12 +748,8 @@ } } -#ifndef __STDC__ -void -ScanTheRest () -#else + void ScanTheRest (void) -#endif { ADDR_T address; table *entry;