diff options
author | Jeremy Allison <jra@samba.org> | 2007-10-18 17:40:25 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-10-18 17:40:25 -0700 |
commit | 30191d1a5704ad2b158386b511558972d539ce47 (patch) | |
tree | 4f46e5c4f28f672ab661aa18f45745860970a88c /source3/libsmb/clientgen.c | |
parent | 789856f63ff73fec66298e95c91c60db7bdaf14e (diff) | |
download | samba-30191d1a5704ad2b158386b511558972d539ce47.tar.gz samba-30191d1a5704ad2b158386b511558972d539ce47.tar.bz2 samba-30191d1a5704ad2b158386b511558972d539ce47.zip |
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)
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r-- | source3/libsmb/clientgen.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 1e3af9a3d7..ca05b2e38a 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -79,7 +79,7 @@ static ssize_t client_receive_smb(int fd,char *buffer, unsigned int timeout, siz Recv an smb. ****************************************************************************/ -BOOL cli_receive_smb(struct cli_state *cli) +bool cli_receive_smb(struct cli_state *cli) { ssize_t len; @@ -166,7 +166,7 @@ ssize_t cli_receive_smb_data(struct cli_state *cli, char *buffer, size_t len) Read a smb readX header. ****************************************************************************/ -BOOL cli_receive_smb_readX_header(struct cli_state *cli) +bool cli_receive_smb_readX_header(struct cli_state *cli) { ssize_t len, offset; @@ -267,7 +267,7 @@ static ssize_t write_socket(int fd, const char *buf, size_t len) Send an smb to a fd. ****************************************************************************/ -BOOL cli_send_smb(struct cli_state *cli) +bool cli_send_smb(struct cli_state *cli) { size_t len; size_t nwritten=0; @@ -469,9 +469,9 @@ struct cli_state *cli_initialise(void) Returns False if the cli_close call failed. ****************************************************************************/ -BOOL cli_rpc_pipe_close(struct rpc_pipe_client *cli) +bool cli_rpc_pipe_close(struct rpc_pipe_client *cli) { - BOOL ret; + bool ret; if (!cli) { return False; @@ -584,9 +584,9 @@ uint16 cli_setpid(struct cli_state *cli, uint16 pid) Set the case sensitivity flag on the packets. Returns old state. ****************************************************************************/ -BOOL cli_set_case_sensitive(struct cli_state *cli, BOOL case_sensitive) +bool cli_set_case_sensitive(struct cli_state *cli, bool case_sensitive) { - BOOL ret = cli->case_sensitive; + bool ret = cli->case_sensitive; cli->case_sensitive = case_sensitive; return ret; } @@ -595,7 +595,7 @@ BOOL cli_set_case_sensitive(struct cli_state *cli, BOOL case_sensitive) Send a keepalive packet to the server ****************************************************************************/ -BOOL cli_send_keepalive(struct cli_state *cli) +bool cli_send_keepalive(struct cli_state *cli) { if (cli->fd == -1) { DEBUG(3, ("cli_send_keepalive: fd == -1\n")); @@ -614,7 +614,7 @@ BOOL cli_send_keepalive(struct cli_state *cli) Send/receive a SMBecho command: ping the server ****************************************************************************/ -BOOL cli_echo(struct cli_state *cli, uint16 num_echos, +bool cli_echo(struct cli_state *cli, uint16 num_echos, unsigned char *data, size_t length) { char *p; |