From 65fa874c3ad930b9abdf7f210583152137ec5a1b Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 16 Sep 2016 12:30:39 +0200 Subject: [PATCH] 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. --- gfx/common/x11_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/common/x11_common.c b/gfx/common/x11_common.c index c4fb80d3ea..551e60e368 100644 --- a/gfx/common/x11_common.c +++ b/gfx/common/x11_common.c @@ -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