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/gdm-session-record.c | |
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/gdm-session-record.c')
-rw-r--r-- | daemon/gdm-session-record.c | 10 |
1 files changed, 5 insertions, 5 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 |