Author: vlendec Date: 2005-03-15 12:40:24 +0000 (Tue, 15 Mar 2005) New Revision: 5794
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5794 Log: Fix some compiler warnings Modified: trunk/source/lib/smbldap.c trunk/source/rpc_server/srv_samr_nt.c Changeset: Modified: trunk/source/lib/smbldap.c =================================================================== --- trunk/source/lib/smbldap.c 2005-03-15 12:22:21 UTC (rev 5793) +++ trunk/source/lib/smbldap.c 2005-03-15 12:40:24 UTC (rev 5794) @@ -883,8 +883,8 @@ static int smbldap_open(struct smbldap_state *ldap_state) { int rc, opt_rc; + BOOL reopen = False; SMB_ASSERT(ldap_state); - BOOL reopen = False; #ifndef NO_LDAP_SECURITY if (geteuid() != 0) { Modified: trunk/source/rpc_server/srv_samr_nt.c =================================================================== --- trunk/source/rpc_server/srv_samr_nt.c 2005-03-15 12:22:21 UTC (rev 5793) +++ trunk/source/rpc_server/srv_samr_nt.c 2005-03-15 12:40:24 UTC (rev 5794) @@ -3954,7 +3954,6 @@ { DOM_SID group_sid; fstring grp_name; - struct group *grp; uint32 acc_granted; SE_PRIV se_rights; BOOL can_add_accounts; @@ -3987,7 +3986,7 @@ /* delete mapping first */ if ( (ret = pdb_delete_group_mapping_entry(group_sid)) == True ) { - smb_delete_group( grp->gr_name ); + smb_delete_group( grp_name ); } if ( can_add_accounts )