From 949791258d5dc4d8d81146afa9643178b1a9d428 Mon Sep 17 00:00:00 2001 From: edman007 Date: Sat, 21 Nov 2009 18:31:45 +0000 Subject: Remove warnings from mpris plugin git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1070 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- plugin_dbus.c | 4 ++-- plugin_mpris_dbus.c | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/plugin_dbus.c b/plugin_dbus.c index b40c3b6..0647e1c 100644 --- a/plugin_dbus.c +++ b/plugin_dbus.c @@ -511,7 +511,7 @@ static int lcd_dbus_init(void) success &= 1; } else { #ifdef DEBUG - dbus_connection_set_exit_on_disconnect(sessconn, FALSE); + dbus_connection_set_exit_on_disconnect(sessconn, FALSE); #endif setup_dbus_events(sessconn); } @@ -522,7 +522,7 @@ static int lcd_dbus_init(void) success &= 2; } else { #ifdef DEBUG - dbus_connection_set_exit_on_disconnect(sysconn, FALSE); + dbus_connection_set_exit_on_disconnect(sysconn, FALSE); #endif setup_dbus_events(sysconn); } diff --git a/plugin_mpris_dbus.c b/plugin_mpris_dbus.c index 0874475..0b69b04 100644 --- a/plugin_mpris_dbus.c +++ b/plugin_mpris_dbus.c @@ -35,6 +35,7 @@ #include "config.h" #include +#include #include #include @@ -108,7 +109,7 @@ static void read_MetaData() { dbus_int64_t val; dbus_message_iter_get_basic(&subiter3, &val); - sprintf(str_value, "%Ld", val); + sprintf(str_value, "%jd", (intmax_t)val); break; } default: @@ -244,8 +245,6 @@ static void method_PositionGet(RESULT * result, RESULT * arg1) value = call_PositionGet(R2S(arg1)); //printf("\ncalled :call_PositionGet %d",value); - if (value < 0) - value = 0; str_tmp = hash_get(&DBUS, "mtime", NULL); if (str_tmp != NULL) -- cgit v1.2.3