diff options
author | Ray Strode <rstrode@redhat.com> | 2007-10-24 14:21:12 +0000 |
---|---|---|
committer | Ray Strode <halfline@src.gnome.org> | 2007-10-24 14:21:12 +0000 |
commit | ccb8c76dbecf5a25190629f20450d6849b5be5cb (patch) | |
tree | 9a44966984bd7b23a0a6ba3f250ec720f335b185 /daemon | |
parent | ef9a787ac6701e920a64740bc3bda3554ff8950e (diff) | |
download | gdm-ccb8c76dbecf5a25190629f20450d6849b5be5cb.tar.gz |
cast size_t values to int before passing to g_debug, to stop warnings on
2007-10-24 Ray Strode <rstrode@redhat.com>
* daemon/gdm-slave.c:
* daemon/gdm-session-record.c:
* daemon/gdm-xdmcp-display-factory.c: cast size_t values
to int before passing to g_debug, to stop warnings on 64-bit
svn path=/trunk/; revision=5404
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gdm-session-record.c | 10 | ||||
-rw-r--r-- | daemon/gdm-slave.c | 2 | ||||
-rw-r--r-- | daemon/gdm-xdmcp-display-factory.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/daemon/gdm-session-record.c b/daemon/gdm-session-record.c index 1dd2cd13..284acae7 100644 --- a/daemon/gdm-session-record.c +++ b/daemon/gdm-session-record.c @@ -81,14 +81,14 @@ record_set_username (UTMP *u, username, sizeof (u->ut_user)); g_debug ("using ut_user %.*s", - sizeof (u->ut_user), + (int) sizeof (u->ut_user), u->ut_user); #elif defined(HAVE_UT_UT_NAME) strncpy (u->ut_name, username sizeof (u->ut_name)); g_debug ("using ut_name %.*s", - sizeof (u->ut_name), + (int) sizeof (u->ut_name), u->ut_name); #endif } @@ -132,7 +132,7 @@ record_set_id (UTMP *u, { #if defined(HAVE_UT_UT_ID) strncpy (u->ut_id, id, sizeof (u->ut_id)); - g_debug ("using ut_id %.*s", sizeof (u->ut_id), u->ut_id); + g_debug ("using ut_id %.*s", (int) sizeof (u->ut_id), u->ut_id); #endif } @@ -158,7 +158,7 @@ record_set_host (UTMP *u, if (hostname != NULL) { strncpy (u->ut_host, hostname, sizeof (u->ut_host)); - g_debug ("using ut_host %.*s", sizeof (u->ut_host), u->ut_host); + g_debug ("using ut_host %.*s", (int) sizeof (u->ut_host), u->ut_host); g_free (hostname); #ifdef HAVE_UT_UT_SYSLEN @@ -188,7 +188,7 @@ record_set_line (UTMP *u, sizeof (u->ut_line)); } - g_debug ("using ut_line %.*s", sizeof (u->ut_line), u->ut_line); + g_debug ("using ut_line %.*s", (int) sizeof (u->ut_line), u->ut_line); } void diff --git a/daemon/gdm-slave.c b/daemon/gdm-slave.c index 041eed02..ee4c1b14 100644 --- a/daemon/gdm-slave.c +++ b/daemon/gdm-slave.c @@ -146,7 +146,7 @@ set_local_auth (GdmSlave *slave) goto out; } - g_debug ("Decoded cookie len %d", binary_cookie->len); + g_debug ("Decoded cookie len %d", (int) binary_cookie->len); XSetAuthorization ("MIT-MAGIC-COOKIE-1", (int) strlen ("MIT-MAGIC-COOKIE-1"), diff --git a/daemon/gdm-xdmcp-display-factory.c b/daemon/gdm-xdmcp-display-factory.c index 075039c5..c0e8ce59 100644 --- a/daemon/gdm-xdmcp-display-factory.c +++ b/daemon/gdm-xdmcp-display-factory.c @@ -2078,13 +2078,13 @@ gdm_xdmcp_handle_request (GdmXdmcpDisplayFactory *factory, } /* sanity check cookie */ - g_debug ("Reencoded cookie len:%d '%s'", test_cookie->len, test_cookie->str); + g_debug ("Reencoded cookie len:%d '%s'", (int) test_cookie->len, test_cookie->str); g_assert (test_cookie->len == cookie->len); g_assert (strcmp (test_cookie->str, cookie->str) == 0); g_string_free (test_cookie, TRUE); g_debug ("Sending authorization key for display %s", cookie->str); - g_debug ("Decoded cookie len %d", binary_cookie->len); + g_debug ("Decoded cookie len %d", (int) binary_cookie->len); session_number = gdm_xdmcp_display_get_session_number (GDM_XDMCP_DISPLAY (display)); |