From 45e93c19ef95978f908f5b14962770510634cd3b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 29 May 2004 08:11:46 +0000 Subject: r943: change samba4 to use 'uint8_t' instead of 'unsigned char' metze (This used to be commit b5378803fdcb3b3afe7c2932a38828e83470f61a) --- source4/utils/net_ads_cldap.c | 2 +- source4/utils/net_rpc.c | 2 +- source4/utils/nmblookup.c | 2 +- source4/utils/ntlm_auth.c | 14 +++++++------- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'source4/utils') diff --git a/source4/utils/net_ads_cldap.c b/source4/utils/net_ads_cldap.c index b588cf7d48..2fdb6e58fd 100644 --- a/source4/utils/net_ads_cldap.c +++ b/source4/utils/net_ads_cldap.c @@ -64,7 +64,7 @@ static unsigned pull_netlogon_string(struct netlogon_string *ret,const char *d) ZERO_STRUCTP(ret); do { - unsigned len = (unsigned char)*p; + unsigned len = (uint8_t)*p; p++; if (len > 0 && len != 0xc0) { diff --git a/source4/utils/net_rpc.c b/source4/utils/net_rpc.c index ce957f57e0..08782d8320 100644 --- a/source4/utils/net_rpc.c +++ b/source4/utils/net_rpc.c @@ -239,7 +239,7 @@ static NTSTATUS rpc_join_oldstyle_internals(const DOM_SID *domain_sid, struct cl int argc, const char **argv) { fstring trust_passwd; - unsigned char orig_trust_passwd_hash[16]; + uint8_t orig_trust_passwd_hash[16]; NTSTATUS result; fstrcpy(trust_passwd, lp_netbios_name()); diff --git a/source4/utils/nmblookup.c b/source4/utils/nmblookup.c index a2ec19d74d..b94887cade 100644 --- a/source4/utils/nmblookup.c +++ b/source4/utils/nmblookup.c @@ -80,7 +80,7 @@ static void usage(void) /**************************************************************************** turn a node status flags field into a string ****************************************************************************/ -static char *node_status_flags(unsigned char flags) +static char *node_status_flags(uint8_t flags) { static fstring ret; fstrcpy(ret,""); diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c index b76308c55f..a966a0461d 100644 --- a/source4/utils/ntlm_auth.c +++ b/source4/utils/ntlm_auth.c @@ -45,11 +45,11 @@ static const char *workstation; static const char *hex_challenge; static const char *hex_lm_response; static const char *hex_nt_response; -static unsigned char *challenge; +static uint8_t *challenge; static size_t challenge_len; -static unsigned char *lm_response; +static uint8_t *lm_response; static size_t lm_response_len; -static unsigned char *nt_response; +static uint8_t *nt_response; static size_t nt_response_len; static char *password; @@ -393,7 +393,7 @@ enum { Routine to set hex password characters into an allocated array. **************************************************************/ -static void hex_encode(const unsigned char *buff_in, size_t len, char **out_hex_buffer) +static void hex_encode(const uint8_t *buff_in, size_t len, char **out_hex_buffer) { int i; char *hex_buffer; @@ -410,12 +410,12 @@ static void hex_encode(const unsigned char *buff_in, size_t len, char **out_hex_ into a 16 byte array. **************************************************************/ -static BOOL hex_decode(const char *hex_buf_in, unsigned char **out_buffer, size_t *size) +static BOOL hex_decode(const char *hex_buf_in, uint8_t **out_buffer, size_t *size) { int i; size_t hex_buf_in_len = strlen(hex_buf_in); - unsigned char partial_byte_hex; - unsigned char partial_byte; + uint8_t partial_byte_hex; + uint8_t partial_byte; const char *hexchars = "0123456789ABCDEF"; char *p; BOOL high = True; -- cgit