summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-11-04 15:04:26 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-11-04 15:04:26 +0000
commitd4a93bd8f04f938ae3a33f4ff77229125e3aa850 (patch)
tree664ab1886ad48422980ecb2839c074fa5a694813
parent0a0cee218a8fb5646bcf662aba6fc4f39bae5db2 (diff)
downloadsamba-d4a93bd8f04f938ae3a33f4ff77229125e3aa850.tar.gz
samba-d4a93bd8f04f938ae3a33f4ff77229125e3aa850.tar.bz2
samba-d4a93bd8f04f938ae3a33f4ff77229125e3aa850.zip
Don't pass any booleans to pdb_set_* functions
(This used to be commit 91f9c9e1d8b490eb384198ff012f65e22f834c39)
-rw-r--r--examples/pdb/xml/pdb_xml.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/pdb/xml/pdb_xml.c b/examples/pdb/xml/pdb_xml.c
index be074fca03..a8b26d6f5f 100644
--- a/examples/pdb/xml/pdb_xml.c
+++ b/examples/pdb/xml/pdb_xml.c
@@ -120,30 +120,30 @@ BOOL parseUser(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur, SAM_ACCOUNT * u)
pdb_set_logon_script(u,
xmlNodeListGetString(doc,
cur->xmlChildrenNode,
- 1), True);
+ 1), PDB_SET);
else if (!strcmp(cur->name, "profile_path") && cur->ns == ns)
pdb_set_profile_path(u,
xmlNodeListGetString(doc,
cur->xmlChildrenNode,
- 1), True);
+ 1), PDB_SET);
else if (!strcmp(cur->name, "logon_time") && cur->ns == ns)
pdb_set_logon_time(u,
atol(xmlNodeListGetString
- (doc, cur->xmlChildrenNode, 1)), True);
+ (doc, cur->xmlChildrenNode, 1)), PDB_SET);
else if (!strcmp(cur->name, "logoff_time") && cur->ns == ns)
pdb_set_logoff_time(u,
atol(xmlNodeListGetString
(doc, cur->xmlChildrenNode, 1)),
- True);
+ PDB_SET);
else if (!strcmp(cur->name, "kickoff_time") && cur->ns == ns)
pdb_set_kickoff_time(u,
atol(xmlNodeListGetString
(doc, cur->xmlChildrenNode, 1)),
- True);
+ PDB_SET);
else if (!strcmp(cur->name, "logon_divs") && cur->ns == ns)
pdb_set_logon_divs(u,
@@ -173,7 +173,7 @@ BOOL parseUser(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur, SAM_ACCOUNT * u)
else if (!strcmp(cur->name, "homedir") && cur->ns == ns)
pdb_set_homedir(u,
xmlNodeListGetString(doc, cur->xmlChildrenNode,
- 1), True);
+ 1), PDB_SET);
else if (!strcmp(cur->name, "unknown_str") && cur->ns == ns)
pdb_set_unknown_str(u,
@@ -185,7 +185,7 @@ BOOL parseUser(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur, SAM_ACCOUNT * u)
pdb_set_dir_drive(u,
xmlNodeListGetString(doc,
cur->xmlChildrenNode,
- 1), True);
+ 1), PDB_SET);
else if (!strcmp(cur->name, "munged_dial") && cur->ns == ns)
pdb_set_munged_dial(u,
@@ -216,10 +216,10 @@ BOOL parseUser(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur, SAM_ACCOUNT * u)
pdb_set_pass_last_set_time(u, atol(tmp), PDB_SET);
tmp = xmlGetProp(cur, "must_change");
if (tmp)
- pdb_set_pass_must_change_time(u, atol(tmp), True);
+ pdb_set_pass_must_change_time(u, atol(tmp), PDB_SET);
tmp = xmlGetProp(cur, "can_change");
if (tmp)
- pdb_set_pass_can_change_time(u, atol(tmp), True);
+ pdb_set_pass_can_change_time(u, atol(tmp), PDB_SET);
parsePass(doc, ns, cur, u);
}