From d8f0e60195ff8447df9235f60095c4e2bb4561e7 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Tue, 20 Oct 1998 22:37:44 +0000 Subject: signed / unsigned warnings (found by herb). how do i switch on these warnings in gcc????? (This used to be commit 39db385a0c47c11adb6bf3bac89c4bb76f675049) --- source3/rpc_client/cli_login.c | 6 +++--- source3/rpc_client/cli_pipe.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/rpc_client') diff --git a/source3/rpc_client/cli_login.c b/source3/rpc_client/cli_login.c index 1b12828550..e18062220b 100644 --- a/source3/rpc_client/cli_login.c +++ b/source3/rpc_client/cli_login.c @@ -106,13 +106,13 @@ BOOL cli_nt_login_interactive(struct cli_state *cli, char *domain, char *usernam uint32 smb_userid_low, char *password, NET_ID_INFO_CTR *ctr, NET_USER_INFO_3 *user_info3) { - unsigned char lm_owf_user_pwd[16]; - unsigned char nt_owf_user_pwd[16]; + uchar lm_owf_user_pwd[16]; + uchar nt_owf_user_pwd[16]; BOOL ret; DEBUG(5,("cli_nt_login_interactive: %d\n", __LINE__)); - nt_lm_owf_gen(password, (char *)nt_owf_user_pwd, (char *)lm_owf_user_pwd); + nt_lm_owf_gen(password, nt_owf_user_pwd, lm_owf_user_pwd); #ifdef DEBUG_PASSWORD diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index f5587567cd..1a72f930c5 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -157,7 +157,7 @@ static BOOL rpc_auth_pipe(struct cli_state *cli, prs_struct *rdata, { DEBUG(10,("rpc_auth_pipe: seal\n")); dump_data(100, reply_data, data_len); - NTLMSSPcalc(cli->ntlmssp_hash, reply_data, data_len); + NTLMSSPcalc(cli->ntlmssp_hash, (uchar*)reply_data, data_len); dump_data(100, reply_data, data_len); } @@ -180,7 +180,7 @@ static BOOL rpc_auth_pipe(struct cli_state *cli, prs_struct *rdata, if (auth_verify) { prs_struct auth_verf; - char *data = (uchar*)mem_data(&rdata->data, len - auth_len); + char *data = mem_data(&rdata->data, len - auth_len); if (data == NULL) return False; DEBUG(10,("rpc_auth_pipe: verify\n")); -- cgit