summaryrefslogtreecommitdiff
path: root/gio/gdbusauthmechanismexternal.c
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2010-05-10 11:47:08 -0400
committerDavid Zeuthen <davidz@redhat.com>2010-05-10 11:47:08 -0400
commit869b4c68332f36377bbdfd186e37f6194ae5ed5a (patch)
treed6d614b211ec804a7191858ceafad47322829140 /gio/gdbusauthmechanismexternal.c
parent728c4e38e72055080c148f9cebca85a08d16a445 (diff)
downloadglib-869b4c68332f36377bbdfd186e37f6194ae5ed5a.tar.gz
GDBus: Use call() instead of invoke_method()
Lots of people been suggesting this. We still use MethodInvocation / method_invocation for handling incoming method calls so use call() instead of invoke_method() helps to separate the client and server facilities. Which is a good thing(tm).
Diffstat (limited to 'gio/gdbusauthmechanismexternal.c')
-rw-r--r--gio/gdbusauthmechanismexternal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gdbusauthmechanismexternal.c b/gio/gdbusauthmechanismexternal.c
index cebbc2426..0ec56b934 100644
--- a/gio/gdbusauthmechanismexternal.c
+++ b/gio/gdbusauthmechanismexternal.c
@@ -351,7 +351,7 @@ mechanism_client_initiate (GDBusAuthMechanism *mechanism,
/* return the uid */
#if defined(G_OS_UNIX)
- initial_response = g_strdup_printf ("%" G_GINT64_FORMAT, g_credentials_get_unix_user (credentials, NULL));
+ initial_response = g_strdup_printf ("%" G_GINT64_FORMAT, (gint64) g_credentials_get_unix_user (credentials, NULL));
#elif defined(G_OS_WIN32)
initial_response = g_strdup_printf ("%s", g_credentials_get_windows_user ());
#else