diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-05-25 16:24:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:15 -0500 |
commit | f9d8f8843dc0ab8c9d59abde7222e0f118b86b5d (patch) | |
tree | 8c6360be102dee63e893526ac7128e9cd52d362c /source4/rpc_server/samr/samr_utils.c | |
parent | 59e739a2f9f4b10f5f6184ef397f034d09959f26 (diff) | |
download | samba-f9d8f8843dc0ab8c9d59abde7222e0f118b86b5d.tar.gz samba-f9d8f8843dc0ab8c9d59abde7222e0f118b86b5d.tar.bz2 samba-f9d8f8843dc0ab8c9d59abde7222e0f118b86b5d.zip |
r884: convert samba4 to use [u]int32_t instead of [u]int32
metze
(This used to be commit 0e5517d937a2eb7cf707991d1c7498c1ab456095)
Diffstat (limited to 'source4/rpc_server/samr/samr_utils.c')
-rw-r--r-- | source4/rpc_server/samr/samr_utils.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source4/rpc_server/samr/samr_utils.c b/source4/rpc_server/samr/samr_utils.c index 247b2d47f4..6b8a2ff19a 100644 --- a/source4/rpc_server/samr/samr_utils.c +++ b/source4/rpc_server/samr/samr_utils.c @@ -27,7 +27,7 @@ translated the ACB_CTRL Flags to UserFlags (userAccountControl) */ /* mapping between ADS userAccountControl and SAMR acct_flags */ static const struct { - uint32 uf; + uint32_t uf; uint16 acb; } acct_flags_map[] = { { UF_ACCOUNTDISABLE, ACB_DISABLED }, @@ -43,9 +43,9 @@ static const struct { { UF_LOCKOUT, ACB_AUTOLOCK } }; -uint32 samdb_acb2uf(uint16 acb) +uint32_t samdb_acb2uf(uint16 acb) { - uint32 i, ret = 0; + uint32_t i, ret = 0; for (i=0;i<ARRAY_SIZE(acct_flags_map);i++) { if (acct_flags_map[i].acb & acb) { ret |= acct_flags_map[i].uf; @@ -57,9 +57,9 @@ uint32 samdb_acb2uf(uint16 acb) /* translated the UserFlags (userAccountControl) to ACB_CTRL Flags */ -uint16 samdb_uf2acb(uint32 uf) +uint16 samdb_uf2acb(uint32_t uf) { - uint32 i; + uint32_t i; uint16 ret = 0; for (i=0;i<ARRAY_SIZE(acct_flags_map);i++) { if (acct_flags_map[i].uf & uf) { @@ -72,9 +72,9 @@ uint16 samdb_uf2acb(uint32 uf) /* get the accountType from the UserFlags */ -uint32 samdb_uf2atype(uint32 uf) +uint32_t samdb_uf2atype(uint32_t uf) { - uint32 atype = 0x00000000; + uint32_t atype = 0x00000000; if (uf & UF_NORMAL_ACCOUNT) atype = ATYPE_NORMAL_ACCOUNT; else if (uf & UF_TEMP_DUPLICATE_ACCOUNT) atype = ATYPE_NORMAL_ACCOUNT; @@ -88,9 +88,9 @@ uint32 samdb_uf2atype(uint32 uf) /* get the accountType from the groupType */ -uint32 samdb_gtype2atype(uint32 gtype) +uint32_t samdb_gtype2atype(uint32_t gtype) { - uint32 atype = 0x00000000; + uint32_t atype = 0x00000000; switch(gtype) { case GTYPE_SECURITY_BUILTIN_LOCAL_GROUP: @@ -118,7 +118,7 @@ uint32 samdb_gtype2atype(uint32 gtype) } /* turn a sAMAccountType into a SID_NAME_USE */ -enum SID_NAME_USE samdb_atype_map(uint32 atype) +enum SID_NAME_USE samdb_atype_map(uint32_t atype) { switch (atype & 0xF0000000) { case ATYPE_GLOBAL_GROUP: |