summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-06-01 10:12:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:23 -0500
commit770e3307ce3da928762e15a136c562df86a9c799 (patch)
tree95930ce042b039faad683515a13e1d8413871b5d /source4/utils
parent98d291423ff581786a369ce373c861f94c654aa0 (diff)
downloadsamba-770e3307ce3da928762e15a136c562df86a9c799.tar.gz
samba-770e3307ce3da928762e15a136c562df86a9c799.tar.bz2
samba-770e3307ce3da928762e15a136c562df86a9c799.zip
r962: convert 'unsigned' and 'unsigned int' to uint_t
metze (This used to be commit 57151e80eb1090281401930c8fe25b20a8cf3a38)
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/net.c4
-rw-r--r--source4/utils/net_ads_cldap.c6
-rw-r--r--source4/utils/net_rpc.c2
-rw-r--r--source4/utils/net_rpc_samsync.c8
4 files changed, 10 insertions, 10 deletions
diff --git a/source4/utils/net.c b/source4/utils/net.c
index ce874d2efd..5ccc50242f 100644
--- a/source4/utils/net.c
+++ b/source4/utils/net.c
@@ -161,7 +161,7 @@ NTSTATUS connect_to_ipc_anonymous(struct cli_state **c,
}
}
-BOOL net_find_server(unsigned flags, struct in_addr *server_ip, char **server_name)
+BOOL net_find_server(uint_t flags, struct in_addr *server_ip, char **server_name)
{
if (opt_host) {
@@ -248,7 +248,7 @@ BOOL net_find_dc(struct in_addr *server_ip, fstring server_name, const char *dom
}
-struct cli_state *net_make_ipc_connection(unsigned flags)
+struct cli_state *net_make_ipc_connection(uint_t flags)
{
char *server_name = NULL;
struct in_addr server_ip;
diff --git a/source4/utils/net_ads_cldap.c b/source4/utils/net_ads_cldap.c
index 2fdb6e58fd..a4464182bb 100644
--- a/source4/utils/net_ads_cldap.c
+++ b/source4/utils/net_ads_cldap.c
@@ -57,14 +57,14 @@ struct cldap_netlogon_reply {
length encoded strings, terminated by either 1) a zero length string or 2)
a 0xc0 byte with what appears to be a one byte flags immediately following.
*/
-static unsigned pull_netlogon_string(struct netlogon_string *ret,const char *d)
+static uint_t pull_netlogon_string(struct netlogon_string *ret,const char *d)
{
char *p = (char *)d;
ZERO_STRUCTP(ret);
do {
- unsigned len = (uint8_t)*p;
+ uint_t len = (uint8_t)*p;
p++;
if (len > 0 && len != 0xc0) {
@@ -91,7 +91,7 @@ static unsigned pull_netlogon_string(struct netlogon_string *ret,const char *d)
do a cldap netlogon query
*/
static int send_cldap_netlogon(int sock, const char *domain,
- const char *hostname, unsigned ntversion)
+ const char *hostname, uint_t ntversion)
{
ASN1_DATA data;
char ntver[4];
diff --git a/source4/utils/net_rpc.c b/source4/utils/net_rpc.c
index 08782d8320..fb42493a8b 100644
--- a/source4/utils/net_rpc.c
+++ b/source4/utils/net_rpc.c
@@ -2131,7 +2131,7 @@ static int rpc_trustdom(int argc, const char **argv)
* if the host is not explicitly specified
* @return BOOL (true means rpc supported)
*/
-BOOL net_rpc_check(unsigned flags)
+BOOL net_rpc_check(uint_t flags)
{
struct cli_state cli;
BOOL ret = False;
diff --git a/source4/utils/net_rpc_samsync.c b/source4/utils/net_rpc_samsync.c
index 7e6f515c29..3a6b754f37 100644
--- a/source4/utils/net_rpc_samsync.c
+++ b/source4/utils/net_rpc_samsync.c
@@ -118,9 +118,9 @@ static void display_sam_entry(SAM_DELTA_HDR *hdr_delta, SAM_DELTA_CTR *delta)
}
-static void dump_database(struct cli_state *cli, unsigned db_type, DOM_CRED *ret_creds)
+static void dump_database(struct cli_state *cli, uint_t db_type, DOM_CRED *ret_creds)
{
- unsigned sync_context = 0;
+ uint_t sync_context = 0;
NTSTATUS result;
int i;
TALLOC_CTX *mem_ctx;
@@ -635,10 +635,10 @@ fetch_sam_entry(SAM_DELTA_HDR *hdr_delta, SAM_DELTA_CTR *delta,
}
static void
-fetch_database(struct cli_state *cli, unsigned db_type, DOM_CRED *ret_creds,
+fetch_database(struct cli_state *cli, uint_t db_type, DOM_CRED *ret_creds,
DOM_SID dom_sid)
{
- unsigned sync_context = 0;
+ uint_t sync_context = 0;
NTSTATUS result;
int i;
TALLOC_CTX *mem_ctx;