From bca72b782a2909ecedef15ad589292647221ca56 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 10 Jul 2012 20:34:02 -0700 Subject: [PATCH] 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 --- src/core/ao_fec.h | 2 +- src/core/ao_fec_rx.c | 2 +- 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 */ -- 2.30.2