Commit ccb8c76d authored by Ray Strode's avatar Ray Strode Committed by Ray Strode

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
parent ef9a787a
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
2007-10-24 William Jon McCann <mccann@jhu.edu>
* Makefile.am:
......
......@@ -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
......
......@@ -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"),
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment