diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-01-08 08:51:41 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-01-08 12:22:18 +0100 |
commit | 0713f9812474ef04df879772f0e3abcdb9e28180 (patch) | |
tree | f9228ecbb5fe77c8d7cd4033de9d9869ad76a4c8 /source3/smbd | |
parent | d9e81664e5afc9576749241b9e445e232d5f83d6 (diff) | |
download | samba-0713f9812474ef04df879772f0e3abcdb9e28180.tar.gz samba-0713f9812474ef04df879772f0e3abcdb9e28180.tar.bz2 samba-0713f9812474ef04df879772f0e3abcdb9e28180.zip |
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
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/utmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) |