Fix const warning.
authorJeremy Allison <jra@samba.org>
Fri, 20 Aug 2010 22:56:37 +0000 (15:56 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 20 Aug 2010 22:56:37 +0000 (15:56 -0700)
source3/auth/auth_util.c
source3/include/proto.h

index 371087e4493d5b647203ec7c7a94cd7b672f2847..1ff9714b1f89f819f111c9cc8f51764069441862 100644 (file)
@@ -947,7 +947,7 @@ static NTSTATUS check_account(TALLOC_CTX *mem_ctx, const char *domain,
  the username if we fallback to the username only.
  ****************************************************************************/
 
-struct passwd *smb_getpwnam( TALLOC_CTX *mem_ctx, char *domuser,
+struct passwd *smb_getpwnam( TALLOC_CTX *mem_ctx, const char *domuser,
                             fstring save_username, bool create )
 {
        struct passwd *pw = NULL;
index 09c34ed3e75007dd2ab6d30f1701aae8a3572c5c..a389966742ca39b026318fb403d1e2352cb213fb 100644 (file)
@@ -148,7 +148,7 @@ NTSTATUS make_server_info_guest(TALLOC_CTX *mem_ctx,
 NTSTATUS make_server_info_system(TALLOC_CTX *mem_ctx,
                                 struct auth_serversupplied_info **server_info);
 bool copy_current_user(struct current_user *dst, struct current_user *src);
-struct passwd *smb_getpwnam( TALLOC_CTX *mem_ctx, char *domuser,
+struct passwd *smb_getpwnam( TALLOC_CTX *mem_ctx, const char *domuser,
                             fstring save_username, bool create );
 NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx, 
                                const char *sent_nt_username,