diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-26 20:16:26 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-11-14 23:27:05 +0100 |
commit | 3dcc321daf569cf64715d47577105af7a48d10ba (patch) | |
tree | 442a4f93c61d5ab06bd9cd40ec89614ee4ca7231 | |
parent | c6d35716502e43cc4ba220bd5374eab8d73ae1b1 (diff) | |
download | samba-3dcc321daf569cf64715d47577105af7a48d10ba.tar.gz samba-3dcc321daf569cf64715d47577105af7a48d10ba.tar.xz samba-3dcc321daf569cf64715d47577105af7a48d10ba.zip |
s3:auth: add some const to user_in_list()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/auth/proto.h | 2 | ||||
-rw-r--r-- | source3/auth/user_util.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/proto.h b/source3/auth/proto.h index 9f4e47af9a..da3c0996a2 100644 --- a/source3/auth/proto.h +++ b/source3/auth/proto.h @@ -356,7 +356,7 @@ void debug_unix_user_token(int dbg_class, int dbg_lev, uid_t uid, gid_t gid, bool map_username(TALLOC_CTX *ctx, const char *user_in, char **p_user_out); bool user_in_netgroup(TALLOC_CTX *ctx, const char *user, const char *ngname); -bool user_in_list(TALLOC_CTX *ctx, const char *user,const char **list); +bool user_in_list(TALLOC_CTX *ctx, const char *user, const char * const *list); /* The following definitions come from auth/user_krb5.c */ struct PAC_LOGON_INFO; diff --git a/source3/auth/user_util.c b/source3/auth/user_util.c index 70ab5ade65..ded2184051 100644 --- a/source3/auth/user_util.c +++ b/source3/auth/user_util.c @@ -188,7 +188,7 @@ bool user_in_netgroup(TALLOC_CTX *ctx, const char *user, const char *ngname) and netgroup lists. ****************************************************************************/ -bool user_in_list(TALLOC_CTX *ctx, const char *user,const char **list) +bool user_in_list(TALLOC_CTX *ctx, const char *user, const char * const *list) { if (!list || !*list) return False; @@ -399,7 +399,7 @@ bool map_username(TALLOC_CTX *ctx, const char *user_in, char **p_user_out) } if (strchr_m(dosname,'*') || - user_in_list(ctx, user_in, (const char **)dosuserlist)) { + user_in_list(ctx, user_in, (const char * const *)dosuserlist)) { DEBUG(3,("Mapped user %s to %s\n",user_in,unixname)); mapped_user = True; |