diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-10-18 23:37:57 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2007-10-18 23:37:57 +0000 |
commit | 40c7f8373b77b8df5a930c3f8c0e8c298c44d11f (patch) | |
tree | a56c0b619939a6478474ffc6393ecf2ef42442f5 | |
parent | e31a5c4575de04410e0a02ffecf368b4b06ccbb0 (diff) | |
download | gdm-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | daemon/gdm-session-record.c | 10 |
2 files changed, 10 insertions, 5 deletions
@@ -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; |