summaryrefslogtreecommitdiff
path: root/lib/libfec.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-10-01 13:11:28 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-10-02 17:16:36 +0300
commit2e6f057227fb60465bd76876cf783ad56561930c (patch)
tree3137844b6d7ad96250c050467554c23f111bfb87 /lib/libfec.c
parentc21a3ad8e20477833c0c39b214f13a4bbf7f9ac3 (diff)
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 <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'lib/libfec.c')
-rw-r--r--lib/libfec.c6
1 files changed, 3 insertions, 3 deletions
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 ;
/*