fix compile warnings

This commit is contained in:
Sascha Kruse 2013-02-18 08:31:24 +00:00
parent b58038e2f1
commit 03ec6e2864
4 changed files with 8 additions and 2 deletions

View File

@ -1971,7 +1971,7 @@ int main(int argc, char *argv[])
run(NULL);
g_main_loop_run(mainloop);
g_bus_unown_name(owner_id);
dbus_tear_down(owner_id);
return 0;
}

View File

@ -38,7 +38,7 @@ typedef struct _screen_info {
typedef struct _actions {
char **actions;
int count;
gsize count;
} Actions;
typedef struct _notification {

View File

@ -325,3 +325,8 @@ int initdbus(void)
return owner_id;
}
void dbus_tear_down(int owner_id)
{
g_bus_unown_name(owner_id);
}

View File

@ -6,6 +6,7 @@
#include <dbus/dbus.h>
int initdbus(void);
void dbus_tear_down(int id);
/* void dbus_poll(int timeout); */
void notificationClosed(notification * n, int reason);