From 30191d1a5704ad2b158386b511558972d539ce47 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 18 Oct 2007 17:40:25 -0700 Subject: RIP BOOL. Convert BOOL -> bool. I found a few interesting bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f) --- source3/libsmb/clitrans.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/libsmb/clitrans.c') diff --git a/source3/libsmb/clitrans.c b/source3/libsmb/clitrans.c index e859dce956..5db624150d 100644 --- a/source3/libsmb/clitrans.c +++ b/source3/libsmb/clitrans.c @@ -24,7 +24,7 @@ Send a SMB trans or trans2 request. ****************************************************************************/ -BOOL cli_send_trans(struct cli_state *cli, int trans, +bool cli_send_trans(struct cli_state *cli, int trans, const char *pipe_name, int fid, int flags, uint16 *setup, unsigned int lsetup, unsigned int msetup, @@ -162,7 +162,7 @@ BOOL cli_send_trans(struct cli_state *cli, int trans, Receive a SMB trans or trans2 response allocating the necessary memory. ****************************************************************************/ -BOOL cli_receive_trans(struct cli_state *cli,int trans, +bool cli_receive_trans(struct cli_state *cli,int trans, char **param, unsigned int *param_len, char **data, unsigned int *data_len) { @@ -170,7 +170,7 @@ BOOL cli_receive_trans(struct cli_state *cli,int trans, unsigned int total_param=0; unsigned int this_data,this_param; NTSTATUS status; - BOOL ret = False; + bool ret = False; *data_len = *param_len = 0; @@ -341,7 +341,7 @@ BOOL cli_receive_trans(struct cli_state *cli,int trans, Send a SMB nttrans request. ****************************************************************************/ -BOOL cli_send_nt_trans(struct cli_state *cli, +bool cli_send_nt_trans(struct cli_state *cli, int function, int flags, uint16 *setup, unsigned int lsetup, unsigned int msetup, @@ -469,7 +469,7 @@ BOOL cli_send_nt_trans(struct cli_state *cli, Receive a SMB nttrans response allocating the necessary memory. ****************************************************************************/ -BOOL cli_receive_nt_trans(struct cli_state *cli, +bool cli_receive_nt_trans(struct cli_state *cli, char **param, unsigned int *param_len, char **data, unsigned int *data_len) { @@ -478,7 +478,7 @@ BOOL cli_receive_nt_trans(struct cli_state *cli, unsigned int this_data,this_param; uint8 eclass; uint32 ecode; - BOOL ret = False; + bool ret = False; *data_len = *param_len = 0; -- cgit