From 33ee89dac563afb568b9fd1fb9d245da975d8527 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Wed, 18 Jan 2012 10:45:49 -0200 Subject: [PATCH] dvb: Fix a few warnings Now that the compilation is not verbose anymore, it is possible to see a few warnings and fix them: dvb-file.c: In function 'fill_entry': dvb-file.c:213:27: warning: unused variable 'v' [-Wunused-variable] descriptors.c: In function 'parse_NIT_ISDBT': descriptors.c:278:4: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' [-Wformat] Signed-off-by: Mauro Carvalho Chehab --- utils/dvb/descriptors.c | 2 +- utils/dvb/dvb-file.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/dvb/descriptors.c b/utils/dvb/descriptors.c index 790e06d..26503b7 100644 --- a/utils/dvb/descriptors.c +++ b/utils/dvb/descriptors.c @@ -275,7 +275,7 @@ static void parse_NIT_ISDBT(struct nit_table *nit_table, add_frequency(nit_table, freq); if (verbose) - printf("Frequency %d\n", freq); + printf("Frequency %ld\n", freq); } } diff --git a/utils/dvb/dvb-file.c b/utils/dvb/dvb-file.c index 6bfdffd..c23d844 100644 --- a/utils/dvb/dvb-file.c +++ b/utils/dvb/dvb-file.c @@ -210,7 +210,7 @@ static const char *pol_name[] = { static int fill_entry(struct dvb_entry *entry, char *key, char *value) { - int i, j, len, type = 0, v; + int i, j, len, type = 0; int is_video = 0, is_audio = 0, n_prop; uint16_t *pid = NULL; char *p; -- 2.7.4