aboutsummaryrefslogtreecommitdiffstats
path: root/util/scan/scan.c
diff options
context:
space:
mode:
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];