From c92c244a63915981cbc3cb8543f0c893a1cf402e Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 12 Dec 2013 08:24:54 -0200 Subject: [PATCH] libdvbv5: Fix a warning at isdb_desc_partial_reception_free descriptors.c:1175:3: warning: initialization from incompatible pointer type [enabled by default] .free = isdb_desc_partial_reception_free, ^ descriptors.c:1175:3: warning: (near initialization for 'dvb_descriptors[251].free') [enabled by default] Signed-off-by: Mauro Carvalho Chehab --- lib/include/descriptors/desc_partial_reception.h | 2 +- lib/libdvbv5/descriptors/desc_partial_reception.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/descriptors/desc_partial_reception.h b/lib/include/descriptors/desc_partial_reception.h index 3bb23ba..c6c45f7 100644 --- a/lib/include/descriptors/desc_partial_reception.h +++ b/lib/include/descriptors/desc_partial_reception.h @@ -48,7 +48,7 @@ extern "C" { void isdb_desc_partial_reception_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc); void isdb_desc_partial_reception_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc); -void isdb_desc_partial_reception_free(const struct dvb_desc *desc); +void isdb_desc_partial_reception_free(struct dvb_desc *desc); #ifdef __cplusplus } diff --git a/lib/libdvbv5/descriptors/desc_partial_reception.c b/lib/libdvbv5/descriptors/desc_partial_reception.c index d165b9d..614a256 100644 --- a/lib/libdvbv5/descriptors/desc_partial_reception.c +++ b/lib/libdvbv5/descriptors/desc_partial_reception.c @@ -46,7 +46,7 @@ void isdb_desc_partial_reception_init(struct dvb_v5_fe_parms *parms, bswap16(d->partial_reception[i].service_id); } -void isdb_desc_partial_reception_free(const struct dvb_desc *desc) +void isdb_desc_partial_reception_free(struct dvb_desc *desc) { struct isdb_desc_partial_reception *d = (void *)desc; if (d->partial_reception) -- 2.7.4