From: Jelmer Vernooij Date: Sun, 26 Dec 2004 21:06:43 +0000 (+0000) Subject: r4370: Don't assume the compiler supports declarations after statements. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5451 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7fa2caec5ec2de4c5e7359621745a65ca9df255c;p=thirdparty%2Fsamba.git r4370: Don't assume the compiler supports declarations after statements. --- diff --git a/source/rpc_server/srv_samr_util.c b/source/rpc_server/srv_samr_util.c index c1faede9477..dd12a438cae 100644 --- a/source/rpc_server/srv_samr_util.c +++ b/source/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)) {