diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2013-09-17 00:36:05 +0100 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2013-09-17 00:36:05 +0100 |
commit | 60584e13787af008063469fba29334090d56d8d4 (patch) | |
tree | 0cc62ecfe2e6b91d5b758f8813b0374c098b0541 /util/scan/scan.c | |
parent | 5501530a778ad588a8ccd3f1584ea58f74c0cec9 (diff) | |
download | linux-dvb-apps-a458528edafa1cb5702dbc7654a6ea86b629d14a.tar.gz |
Imported Upstream version 1.1.1+rev1500upstream/1.1.1+rev1500upstream
Diffstat (limited to 'util/scan/scan.c')
-rw-r--r-- | util/scan/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
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]; |