summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-12-26 21:06:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:46 -0500
commitd1a61c18fba101e64e6c446491e953c38d721929 (patch)
tree95b5775f48f7caabed919edf19e5bf670b08ddd6
parent7f98253a67d9f417f98376f0608b7dd61e0b7150 (diff)
downloadsamba-d1a61c18fba101e64e6c446491e953c38d721929.tar.gz
samba-d1a61c18fba101e64e6c446491e953c38d721929.tar.bz2
samba-d1a61c18fba101e64e6c446491e953c38d721929.zip
r4370: Don't assume the compiler supports declarations after statements.
(This used to be commit 7fa2caec5ec2de4c5e7359621745a65ca9df255c)
-rw-r--r--source3/rpc_server/srv_samr_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_util.c b/source3/rpc_server/srv_samr_util.c
index c1faede947..dd12a438ca 100644
--- a/source3/rpc_server/srv_samr_util.c
+++ b/source3/rpc_server/srv_samr_util.c
@@ -251,6 +251,7 @@ void copy_id21_to_sam_passwd(SAM_ACCOUNT *to, SAM_USER_INFO_21 *from)
}
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 @@ void copy_id21_to_sam_passwd(SAM_ACCOUNT *to, SAM_USER_INFO_21 *from)
}
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)) {