From 2e6f057227fb60465bd76876cf783ad56561930c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 1 Oct 2010 13:11:28 -0400 Subject: sumtool/libfec: convert "()" to "(void)" in func defs Since these functions take no parameters, declare them as such. The subtle difference here is that gcc allows (without warning) people to accidentally call funcs declared with "()" with arguments. Using void makes sure that gcc will reject such typos at compile time. Signed-off-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- lib/libfec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libfec.c') diff --git a/lib/libfec.c b/lib/libfec.c index b19ed6e..c89a180 100644 --- a/lib/libfec.c +++ b/lib/libfec.c @@ -185,7 +185,7 @@ static gf gf_mul_table[GF_SIZE + 1][GF_SIZE + 1]; #define GF_ADDMULC(dst, x) dst ^= __gf_mulc_[x] static void -init_mul_table() +init_mul_table(void) { int i, j; for (i=0; i< GF_SIZE+1; i++) @@ -603,7 +603,7 @@ invert_vdm(gf *src, int k) static int fec_initialized = 0 ; static void -init_fec() +init_fec(void) { TICK(ticks[0]); generate_gf(); @@ -882,7 +882,7 @@ fec_decode(struct fec_parms *code, gf *pkt[], int index[], int sz) #if (TEST || DEBUG) void -test_gf() +test_gf(void) { int i ; /* -- cgit v1.2.3