From: Jaroslav Kysela Date: Tue, 28 Apr 2015 13:07:59 +0000 (+0200) Subject: linuxdvb: fix for the previous patch (fixed bad macro), fixes #2807 X-Git-Tag: v4.1~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd219954c1e60e71ad1fa5a3d73cf671b7f0f128;p=thirdparty%2Ftvheadend.git linuxdvb: fix for the previous patch (fixed bad macro), fixes #2807 --- diff --git a/src/input/mpegts/linuxdvb/linuxdvb_frontend.c b/src/input/mpegts/linuxdvb/linuxdvb_frontend.c index 211a4eac0..f7756ba7f 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_frontend.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_frontend.c @@ -1388,9 +1388,11 @@ linuxdvb_frontend_tune0 memset(&cmds, 0, sizeof(cmds)); /* Tune */ -#define S2CMD(c, d)\ - cmds[cmdseq.num].cmd = c;\ - cmds[cmdseq.num++].u.data = d +#define S2CMD(c, d) do { \ + cmds[cmdseq.num].cmd = c; \ + cmds[cmdseq.num++].u.data = d; \ +} while (0) + memset(&cmds, 0, sizeof(cmds)); S2CMD(DTV_DELIVERY_SYSTEM, TR(delsys, delsys_tbl, SYS_UNDEFINED)); S2CMD(DTV_FREQUENCY, freq);