@@ -84,7 +84,7 @@ struct dvb_sat_lnb {
struct dvb_v5_fe_parms;
#ifdef __cplusplus
-extern "C"
+extern "C" {
#endif
/* From libsat.c */
@@ -65,7 +65,6 @@ struct dvb_v5_fe_parms_priv {
struct dvb_v5_stats stats;
/* Satellite specific stuff */
- const struct dvb_sat_lnb *lnb;
int high_band;
unsigned freq_offset;
};
@@ -356,7 +356,7 @@ static int dvbsat_diseqc_set_input(struct dvb_v5_fe_parms_priv *parms,
int dvb_sat_set_parms(struct dvb_v5_fe_parms *p)
{
struct dvb_v5_fe_parms_priv *parms = (void *)p;
- const struct dvb_sat_lnb *lnb = parms->lnb;
+ const struct dvb_sat_lnb *lnb = p->lnb;
enum dvb_sat_polarization pol;
dvb_fe_retrieve_parm(&parms->p, DTV_POLARIZATION, &pol);
uint32_t freq;
the LNBf is part of the public structure, remove it from dvb_v5_fe_parms_priv. fix typo for C++. Signed-off-by: André Roth <neolynx@gmail.com> --- lib/include/libdvbv5/dvb-sat.h | 2 +- lib/libdvbv5/dvb-fe-priv.h | 1 - lib/libdvbv5/dvb-sat.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-)