aboutsummaryrefslogtreecommitdiffstats
path: root/util/scan/scan.c
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2013-09-17 00:36:05 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2013-09-17 00:36:05 +0100
commit60584e13787af008063469fba29334090d56d8d4 (patch)
tree0cc62ecfe2e6b91d5b758f8813b0374c098b0541 /util/scan/scan.c
parent5501530a778ad588a8ccd3f1584ea58f74c0cec9 (diff)
downloadlinux-dvb-apps-60584e13787af008063469fba29334090d56d8d4.tar.gz
Imported Upstream version 1.1.1+rev1500upstream/1.1.1+rev1500upstream
Diffstat (limited to '')
-rw-r--r--util/scan/scan.c4
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];