s4:auth/ntlm/auth.c - fix incompatible pointer type warning
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 8 Jun 2011 07:36:59 +0000 (09:36 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 9 Jun 2011 07:35:32 +0000 (09:35 +0200)
Reviewed-by: Tridge
source4/auth/ntlm/auth.c

index 2308b1594d4df8ddd9912762a210b1fb79398571..d2464c3cbf6dd4a2dbeb05cd7e0bd000702da0c4 100644 (file)
@@ -487,7 +487,7 @@ _PUBLIC_ NTSTATUS auth_context_create_methods(TALLOC_CTX *mem_ctx, const char **
 
 const char **auth_methods_from_lp(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
 {
-       const char **auth_methods = NULL;
+       char **auth_methods = NULL;
 
        switch (lpcfg_server_role(lp_ctx)) {
        case ROLE_STANDALONE:
@@ -501,7 +501,7 @@ const char **auth_methods_from_lp(TALLOC_CTX *mem_ctx, struct loadparm_context *
                auth_methods = str_list_make(mem_ctx, "anonymous sam_ignoredomain winbind", NULL);
                break;
        }
-       return auth_methods;
+       return (const char **) auth_methods;
 }
 
 /***************************************************************************