summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-07-10 20:34:02 -0700
committerKeith Packard <keithp@keithp.com>2012-07-10 20:34:02 -0700
commitbca72b782a2909ecedef15ad589292647221ca56 (patch)
tree0f75d26e7c646b5095e41631ede4ba2cf5bbaa6b
parentaafa8859ecb27383f697b98f6991643b44f4721a (diff)
altos: Add 'void' parameter to ao_fec_decode callback parameter
This keeps the compiler from whinging about the lack of a prototype. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/core/ao_fec.h2
-rw-r--r--src/core/ao_fec_rx.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ao_fec.h b/src/core/ao_fec.h
index 771732bd..eedea8f4 100644
--- a/src/core/ao_fec.h
+++ b/src/core/ao_fec.h
@@ -73,7 +73,7 @@ ao_fec_encode(const uint8_t *in, uint8_t len, uint8_t *out);
#define AO_FEC_DECODE_CRC_OK 0x80 /* stored in out[out_len-1] */
uint8_t
-ao_fec_decode(const uint8_t *in, uint16_t in_len, uint8_t *out, uint8_t out_len, uint16_t (*callback)());
+ao_fec_decode(const uint8_t *in, uint16_t in_len, uint8_t *out, uint8_t out_len, uint16_t (*callback)(void));
/*
* Interleave data packed in bytes. 'out' must be 'len' bytes long.
diff --git a/src/core/ao_fec_rx.c b/src/core/ao_fec_rx.c
index 64426d72..072a9e90 100644
--- a/src/core/ao_fec_rx.c
+++ b/src/core/ao_fec_rx.c
@@ -96,7 +96,7 @@ ao_next_state(uint8_t state, uint8_t bit)
*/
uint8_t
-ao_fec_decode(const uint8_t *in, uint16_t len, uint8_t *out, uint8_t out_len, uint16_t (*callback)())
+ao_fec_decode(const uint8_t *in, uint16_t len, uint8_t *out, uint8_t out_len, uint16_t (*callback)(void))
{
static uint32_t cost[2][NUM_STATE]; /* path cost */
static bits_t bits[2][NUM_STATE]; /* save bits to quickly output them */