summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2007-10-18 23:37:57 +0000
committerWilliam Jon McCann <mccann@src.gnome.org>2007-10-18 23:37:57 +0000
commit40c7f8373b77b8df5a930c3f8c0e8c298c44d11f (patch)
treea56c0b619939a6478474ffc6393ecf2ef42442f5
parente31a5c4575de04410e0a02ffecf368b4b06ccbb0 (diff)
downloadgdm-40c7f8373b77b8df5a930c3f8c0e8c298c44d11f.tar.gz
Make username const.
2007-10-18 William Jon McCann <mccann@jhu.edu> * daemon/gdm-session-record.c (gdm_session_write_record): Make username const. svn path=/trunk/; revision=5382
-rw-r--r--ChangeLog5
-rw-r--r--daemon/gdm-session-record.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 2289b5e6..99246c16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-18 William Jon McCann <mccann@jhu.edu>
+
+ * daemon/gdm-session-record.c (gdm_session_write_record):
+ Make username const.
+
2007-10-18 William Jon McCann <mccannwj@acsnb1>
* daemon/gdm-session.c:
diff --git a/daemon/gdm-session-record.c b/daemon/gdm-session-record.c
index ae578d10..81c52cd7 100644
--- a/daemon/gdm-session-record.c
+++ b/daemon/gdm-session-record.c
@@ -55,11 +55,11 @@ gdm_session_write_record (GdmSessionRecordType record_type,
const char *x11_display_name,
const char *display_device)
{
- UTMP session_record = { 0 };
- UTMP *u;
- GTimeVal now = { 0 };
- char *hostname;
- char *username;
+ UTMP session_record = { 0 };
+ UTMP *u;
+ GTimeVal now = { 0 };
+ char *hostname;
+ const char *username;
u = NULL;