From 0713f9812474ef04df879772f0e3abcdb9e28180 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 8 Jan 2009 08:51:41 +0100 Subject: s3:smbd: make globals in utmp.c static const const char *foo, means a non-const pointer to a const char. const char * const foo, means a const pointer to a const char. char * const foo, would mean a const pointer to a non-const char. metze --- source3/smbd/utmp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/utmp.c b/source3/smbd/utmp.c index af947ef462..74774054e8 100644 --- a/source3/smbd/utmp.c +++ b/source3/smbd/utmp.c @@ -142,7 +142,7 @@ void sys_utmp_yield(const char *username, const char *hostname, #ifdef HAVE_UTMPX_H -static const char *ux_pathname = +static const char * const ux_pathname = # if defined (UTMPX_FILE) UTMPX_FILE ; # elif defined (_UTMPX_FILE) @@ -153,7 +153,7 @@ static const char *ux_pathname = "" ; # endif -static const char *wx_pathname = +static const char * const wx_pathname = # if defined (WTMPX_FILE) WTMPX_FILE ; # elif defined (_WTMPX_FILE) @@ -166,7 +166,7 @@ static const char *wx_pathname = #endif /* HAVE_UTMPX_H */ -static const char *ut_pathname = +static const char * const ut_pathname = # if defined (UTMP_FILE) UTMP_FILE ; # elif defined (_UTMP_FILE) @@ -177,7 +177,7 @@ static const char *ut_pathname = "" ; # endif -static const char *wt_pathname = +static const char * const wt_pathname = # if defined (WTMP_FILE) WTMP_FILE ; # elif defined (_WTMP_FILE) -- cgit