aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_mpris_dbus.c
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 /plugin_mpris_dbus.c
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
Diffstat (limited to 'plugin_mpris_dbus.c')
-rw-r--r--plugin_mpris_dbus.c5
1 files changed, 2 insertions, 3 deletions
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)