svn commit: samba r4370 - in branches/SAMBA_3_0/source/rpc_server: .

jelmer at samba.org jelmer at samba.org
Sun Dec 26 21:06:43 GMT 2004


Author: jelmer
Date: 2004-12-26 21:06:43 +0000 (Sun, 26 Dec 2004)
New Revision: 4370

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4370

Log:
Don't assume the compiler supports declarations after statements.

Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_samr_util.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_samr_util.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_samr_util.c	2004-12-26 18:51:49 UTC (rev 4369)
+++ branches/SAMBA_3_0/source/rpc_server/srv_samr_util.c	2004-12-26 21:06:43 UTC (rev 4370)
@@ -251,6 +251,7 @@
 	}
 
 	if (from->fields_present & ACCT_LOGON_HOURS) {
+		pstring old, new;
 		DEBUG(15,("INFO_21 LOGON_DIVS: %08X -> %08X\n",pdb_get_logon_divs(to),from->logon_divs));
 		if (from->logon_divs != pdb_get_logon_divs(to)) {
 			pdb_set_logon_divs(to, from->logon_divs, PDB_CHANGED);
@@ -262,7 +263,6 @@
 		}
 
 		DEBUG(15,("INFO_21 LOGON_HRS.HOURS: %s -> %s\n",pdb_get_hours(to),from->logon_hrs.hours));
-		pstring old, new;
 		pdb_sethexhours(old, pdb_get_hours(to));
 		pdb_sethexhours(new, (const char *)from->logon_hrs.hours);
 		if (!strequal(old, new)) {



More information about the samba-cvs mailing list