mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
r4370: Don't assume the compiler supports declarations after statements.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
8de0488809
commit
7fa2caec5e
@ -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)) {
|
||||
|
Reference in New Issue
Block a user