Fixed compiler warning.
authorTim Potter <tpot@samba.org>
Fri, 21 Feb 2003 04:47:24 +0000 (04:47 +0000)
committerTim Potter <tpot@samba.org>
Fri, 21 Feb 2003 04:47:24 +0000 (04:47 +0000)
(This used to be commit b3f9cf8c1c293e905a536dfa5bb6a827627b7024)

source3/rpc_server/srv_lsa_nt.c
source3/smbd/sesssetup.c

index b230381d62956ed78e38232c2db96635fbb1b54f..1b42c5f141b5512a1cae0e0596568ac5801cc863 100644 (file)
@@ -1280,7 +1280,7 @@ NTSTATUS _lsa_enum_acct_rights(pipes_struct *p, LSA_Q_ENUM_ACCT_RIGHTS *q_u, LSA
 
        r_u->status = privilege_enum_account_rights(&q_u->sid.sid, &num_rights, &rights);
 
-       init_r_enum_acct_rights(r_u, num_rights, rights);
+       init_r_enum_acct_rights(r_u, num_rights, (const char **)rights);
 
        for (i=0;i<num_rights;i++) {
                free(rights[i]);
index 3a3209f1722d3a8b2370f77938a4e77f7a96f600..eafe805aba9f53a3ff2f5add682b2f2f98e48658 100644 (file)
@@ -463,7 +463,6 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
        extern BOOL global_encrypted_passwords_negotiated;
        extern BOOL global_spnego_negotiated;
        extern int Protocol;
-       extern userdom_struct current_user_info;
        extern int max_send;
 
        auth_usersupplied_info *user_info = NULL;