This keeps the compiler from whinging about the lack of a prototype.
Signed-off-by: Keith Packard <keithp@keithp.com>
#define AO_FEC_DECODE_CRC_OK 0x80 /* stored in out[out_len-1] */
uint8_t
#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.
/*
* Interleave data packed in bytes. 'out' must be 'len' bytes long.
-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 */
{
static uint32_t cost[2][NUM_STATE]; /* path cost */
static bits_t bits[2][NUM_STATE]; /* save bits to quickly output them */