#1659 closed defect (fixed)
Error Building C object module-dvbapi.o
Reported by: | pmanu | Owned by: | _network |
---|---|---|---|
Priority: | minor | Component: | DVBApi |
Severity: | low | Keywords: | module-dvbapi.o module-dvbapi |
Cc: | _network | Sensitive: | no |
Description
An error occure in module-dvbapi.o when building with this CMAKE options "-DAZBOX=1 -DHAVE_DVBAPI=1" :
[ 4%] Building C object CMakeFiles/csmodules.dir/module-dvbapi.o /oscam_dvbapi/module-dvbapi.c: In function `azbox_send_dcw': /oscam_dvbapi/module-dvbapi.c:2138: error: parse error before '{' token
Here is a suggested patch :
--- module-dvbapi.c.orig 2011-02-16 19:14:47.448573011 +0100 +++ module-dvbapi.c 2011-02-16 19:23:23.392344006 +0100 @@ -2135,7 +2135,7 @@ cs_debug_mask(D_DVBAPI, "openxcas: send_dcw"); FILE *ecmtxt; - if ((ecmtxt = fopen(ECMINFO_FILE, "w")) { + if((ecmtxt = fopen(ECMINFO_FILE, "w"))) { if(er->rc <= E_EMU) { fprintf(ecmtxt, "caid: 0x%04X\npid: 0x%04X\nprov: 0x%06X\n", er->caid, er->pid, (uint) er->prid); fprintf(ecmtxt, "reader: %s\n", er->selected_reader->label);
Change History (2)
comment:1 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 13 years ago
Thank you but the fix generate a warning :
[ 4%] Building C object CMakeFiles/csmodules.dir/module-dvbapi.o
/oscam_dvbapi/module-dvbapi.c: In function `azbox_send_dcw': /oscam_dvbapi/module-dvbapi.c:2138: warning: suggest parentheses around assignment used as truth value
Note:
See TracTickets
for help on using tickets.
r4736