summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2010-02-25 00:48:12 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2010-02-25 00:48:12 +0000
commit5dc1f14b931db97076d32bb1285354fa304ebae2 (patch)
treeb0ca46382e64786d45dcee230a356ad381ae891b
parentcdeee7eb6710adb3fee02c4e5f1e7493f2af70cc (diff)
downloadxine-lib-5dc1f14b931db97076d32bb1285354fa304ebae2.tar.gz
xine-lib-5dc1f14b931db97076d32bb1285354fa304ebae2.tar.bz2
Compiler warning fixes.
-rw-r--r--src/input/libdvdnav/decoder.c2
-rw-r--r--src/input/libdvdnav/ifo_read.c4
-rw-r--r--src/input/libdvdnav/vmcmd.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/input/libdvdnav/decoder.c b/src/input/libdvdnav/decoder.c
index 3dff4a080..4ae64377b 100644
--- a/src/input/libdvdnav/decoder.c
+++ b/src/input/libdvdnav/decoder.c
@@ -569,7 +569,7 @@ static int32_t eval_command(uint8_t *bytes, registers_t* registers, link_t *retu
if(command.instruction & ~ command.examined) {
fprintf(MSG_OUT, "libdvdnav: decoder.c: [WARNING, unknown bits:");
- fprintf(MSG_OUT, " %08llx", (command.instruction & ~ command.examined) );
+ fprintf(MSG_OUT, " %08"PRIx64, (command.instruction & ~ command.examined) );
fprintf(MSG_OUT, "]\n");
}
diff --git a/src/input/libdvdnav/ifo_read.c b/src/input/libdvdnav/ifo_read.c
index bc1ba580b..61500caa2 100644
--- a/src/input/libdvdnav/ifo_read.c
+++ b/src/input/libdvdnav/ifo_read.c
@@ -654,10 +654,10 @@ static int ifoRead_PGC(ifo_handle_t *ifofile, pgc_t *pgc, unsigned int offset) {
/* verify time (look at print_time) */
for(i = 0; i < 8; i++)
- if(!pgc->audio_control[i] & 0x8000) /* The 'is present' bit */
+ if(!(pgc->audio_control[i] & 0x8000)) /* The 'is present' bit */
CHECK_ZERO(pgc->audio_control[i]);
for(i = 0; i < 32; i++)
- if(!pgc->subp_control[i] & 0x80000000) /* The 'is present' bit */
+ if(!(pgc->subp_control[i] & 0x80000000)) /* The 'is present' bit */
CHECK_ZERO(pgc->subp_control[i]);
/* Check that time is 0:0:0:0 also if nr_of_programs == 0 */
diff --git a/src/input/libdvdnav/vmcmd.c b/src/input/libdvdnav/vmcmd.c
index 24bdfe6e2..84a90dfd6 100644
--- a/src/input/libdvdnav/vmcmd.c
+++ b/src/input/libdvdnav/vmcmd.c
@@ -517,7 +517,7 @@ void vm_print_mnemonic(vm_cmd_t *vm_command) {
if(command.instruction & ~ command.examined) {
fprintf(MSG_OUT, " libdvdnav: vmcmd.c: [WARNING, unknown bits:");
- fprintf(MSG_OUT, " %08llx", (command.instruction & ~ command.examined) );
+ fprintf(MSG_OUT, " %08"PRIx64, (command.instruction & ~ command.examined) );
fprintf(MSG_OUT, "]");
}
}