x11: Rename function fetching the D-Bus connection

You'd expect a "get" function to return the variable in question. This
doesn't, and simply sets a global variable.
This commit is contained in:
Bastien Nocera 2016-09-16 12:30:39 +02:00
parent 247de41ce1
commit 65fa874c3a
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ unsigned g_x11_screen;
#define MOVERESIZE_Y_SHIFT 9
#ifdef HAVE_DBUS
static void dbus_get_connection(void)
static void dbus_ensure_connection(void)
{
DBusError err;
int ret;
@ -663,7 +663,7 @@ bool x11_connect(void)
}
#ifdef HAVE_DBUS
dbus_get_connection();
dbus_ensure_connection();
#endif