mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 12:27:52 +00:00
Minor fixes.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@453 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
5e91a7d617
commit
96d369bdbd
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
#include <dbus/dbus-glib.h>
|
#include <dbus/dbus-glib.h>
|
||||||
#include <bmpx/dbus.h>
|
#include <bmpx/dbus.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@ -32,6 +31,7 @@ void update_bmpx()
|
|||||||
bus = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
|
bus = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
|
||||||
if (bus == NULL) {
|
if (bus == NULL) {
|
||||||
ERR("%s\n", error->message);
|
ERR("%s\n", error->message);
|
||||||
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
remote_object = dbus_g_proxy_new_for_name(bus,
|
remote_object = dbus_g_proxy_new_for_name(bus,
|
||||||
@ -41,8 +41,9 @@ void update_bmpx()
|
|||||||
if (!remote_object) {
|
if (!remote_object) {
|
||||||
ERR("%s\n", error->message);
|
ERR("%s\n", error->message);
|
||||||
goto fail;
|
goto fail;
|
||||||
} else
|
}
|
||||||
connected = 1;
|
|
||||||
|
connected = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (connected == 1) {
|
if (connected == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user