From 60584e13787af008063469fba29334090d56d8d4 Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Tue, 17 Sep 2013 00:36:05 +0100 Subject: Imported Upstream version 1.1.1+rev1500 --- util/scan/scan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/scan/scan.c') diff --git a/util/scan/scan.c b/util/scan/scan.c index 46bdb08..71a20db 100644 --- a/util/scan/scan.c +++ b/util/scan/scan.c @@ -1304,7 +1304,7 @@ static void parse_sdt (const unsigned char *buf, int section_length, int descriptors_loop_len = ((buf[3] & 0x0f) << 8) | buf[4]; struct service *s; - if (section_length < descriptors_loop_len || !descriptors_loop_len) + if (section_length < descriptors_loop_len) { warning("section too short: service_id == 0x%02x, section_length == %i, " "descriptors_loop_len == %i\n", @@ -1934,7 +1934,7 @@ static int __tune_to_transponder (int frontend_fd, struct transponder *t) return -1; } -static set_delivery_system(int fd, unsigned type) +static int set_delivery_system(int fd, unsigned type) { struct dtv_properties props; struct dtv_property dvb_prop[1]; -- cgit v1.2.3