Minor updates. A small dose of const.
[ira/wip.git] / source3 / smbd / auth_util.c
index cfdf3a6acce43a0672f2bb3a97f61029a905e674..3f03097de43e46fea37d9955f31260f7fe7491df 100644 (file)
@@ -426,7 +426,7 @@ BOOL make_user_info_winbind(auth_usersupplied_info **user_info,
                /* WATCH OUT. This doesn't work if the incoming password is incorrectly cased. 
                   We might want to add a check here and only do an LM in that case */
                
-               SMBNTencrypt((uchar *)password, chal, local_nt_response);
+               SMBNTencrypt((const uchar *)password, chal, local_nt_response);
 
                local_lm_blob = data_blob(local_lm_response, sizeof(local_lm_response));
                local_nt_blob = data_blob(local_nt_response, sizeof(local_nt_response));
@@ -687,7 +687,7 @@ void free_server_info(auth_serversupplied_info **server_info)
 
 BOOL make_server_info_guest(auth_serversupplied_info **server_info) 
 {
-       struct passwd *pass = sys_getpwnam(lp_guestaccount(-1));
+       struct passwd *pass = sys_getpwnam(lp_guestaccount());
        
        if (pass) {
                if (!make_server_info_pw(server_info, pass)) {