From fbe6fa7019309672c311184dd3bce3c25fb578d3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 26 Sep 2011 16:01:40 -0700 Subject: Add const attributes to fix gcc -Wwrite-strings warnings Signed-off-by: Alan Coopersmith --- sessreg.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sessreg.c b/sessreg.c index d445498..03c05b6 100644 --- a/sessreg.c +++ b/sessreg.c @@ -89,13 +89,14 @@ static void set_utmpx (struct utmpx *u, const char *line, const char *user, #endif static int wflag, uflag, lflag; -static char *wtmp_file, *utmp_file, *line; +static const char *wtmp_file, *utmp_file; +static char *line; #ifdef USE_UTMPX #ifdef HAVE_UPDWTMPX -static char *wtmpx_file = NULL; +static const char *wtmpx_file = NULL; #endif #ifdef HAVE_UTMPXNAME -static char *utmpx_file = NULL; +static const char *utmpx_file = NULL; #endif #endif static int utmp_none, wtmp_none; @@ -113,7 +114,7 @@ static char *xservers_file, *ttys_file; static char *user_name; static int aflag, dflag; #ifdef USE_LASTLOG -static char *llog_file; +static const char *llog_file; static int llog_none, Lflag; #endif -- cgit v1.2.3