aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredman007 <edman007@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-11-21 18:31:45 +0000
committeredman007 <edman007@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-11-21 18:31:45 +0000
commit949791258d5dc4d8d81146afa9643178b1a9d428 (patch)
treec96b03c4a5362e7b57dcb02282a3f10da14ee01e
parent973fbdac9163ba98bd5358b9f24bf6f5d5844e34 (diff)
downloadlcd4linux-949791258d5dc4d8d81146afa9643178b1a9d428.tar.gz
Remove warnings from mpris plugin
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1070 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r--plugin_dbus.c4
-rw-r--r--plugin_mpris_dbus.c5
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 <stdlib.h>
+#include <stdint.h>
#include <string.h>
#include <ctype.h>
@@ -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)