aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)