mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
Remove warnings from mpris plugin
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1070 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user