r24712: No longer expose the 'BOOL' data type in any interfaces.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 27 Aug 2007 18:10:19 +0000 (18:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:02:54 +0000 (15:02 -0500)
(This used to be commit 1ce32673d960c8b05b6c1b1b99e1976a402417ae)

53 files changed:
source4/auth/auth.h
source4/auth/credentials/credentials.h
source4/auth/gensec/gensec.h
source4/auth/gensec/schannel.h
source4/auth/kerberos/kerberos.h
source4/auth/ntlmssp/ntlmssp.h
source4/client/cifsdd.h
source4/cluster/ctdb/include/includes.h
source4/dsdb/schema/schema.h
source4/include/core.h
source4/include/includes.h
source4/kdc/kdc.h
source4/ldap_server/ldap_server.h
source4/lib/charset/iconv.c
source4/lib/charset/util_unistr.c
source4/lib/messaging/irpc.h
source4/lib/registry/registry.h
source4/lib/registry/util.c
source4/lib/samba3/smbpasswd.c
source4/lib/samba3/tdbsam.c
source4/lib/socket/socket.h
source4/lib/tls/tls.h
source4/libcli/cldap/cldap.h
source4/libcli/composite/composite.h
source4/libcli/ldap/ldap.h
source4/libcli/ldap/ldap_client.h
source4/libcli/nbt/libnbt.h
source4/libcli/raw/interfaces.h
source4/libcli/raw/libcliraw.h
source4/libcli/raw/signing.h
source4/libcli/smb2/smb2.h
source4/libcli/smb_composite/smb_composite.h
source4/libcli/util/asn_1.h
source4/libcli/wrepl/winsrepl.h
source4/libnet/libnet_join.h
source4/librpc/ndr/libndr.h
source4/librpc/rpc/dcerpc.h
source4/nbt_server/wins/winsdb.h
source4/nsswitch/winbindd_nss.h
source4/ntvfs/common/opendb.h
source4/ntvfs/ntvfs.h
source4/ntvfs/posix/vfs_posix.h
source4/param/loadparm.h
source4/param/share.h
source4/rpc_server/dcerpc_server.h
source4/script/mkproto.pl
source4/scripting/ejs/ejsrpc.h
source4/smb_server/smb_server.h
source4/smbd/service_stream.h
source4/web_server/web_server.h
source4/winbind/wb_server.h
source4/wrepl_server/wrepl_out_helpers.h
source4/wrepl_server/wrepl_server.h

index c694141373d965a00860d14875aaf3a08c1e0547..be8221d79e6e68b793d9956c492c5c30b382cc09 100644 (file)
@@ -56,7 +56,7 @@ struct auth_usersupplied_info
 
        uint32_t logon_parameters;
 
-       BOOL mapped_state;
+       bool mapped_state;
        /* the values the client gives us */
        struct {
                const char *account_name;
@@ -113,7 +113,7 @@ struct auth_serversupplied_info
 
        uint32_t acct_flags;
 
-       BOOL authenticated;
+       bool authenticated;
 };
 
 struct auth_session_info {
@@ -161,7 +161,7 @@ struct auth_context {
                /* Who set this up in the first place? */ 
                const char *set_by;
 
-               BOOL may_be_modified;
+               bool may_be_modified;
 
                DATA_BLOB data; 
        } challenge;
index ca034a8504db1a510c4ff7c65cf725528ebfd335..1cecb97055dd0d961f8963ebba5b64523920f1e9 100644 (file)
@@ -104,10 +104,10 @@ struct cli_credentials {
        /* We are flagged to get machine account details from the
         * secrets.ldb when we are asked for a username or password */
 
-       BOOL machine_account_pending;
+       bool machine_account_pending;
        
        /* Is this a machine account? */
-       BOOL machine_account;
+       bool machine_account;
 
        /* Should we be trying to use kerberos? */
        enum credentials_use_kerberos use_kerberos;
@@ -119,7 +119,7 @@ struct cli_credentials {
        int tries;
 
        /* Whether any callback is currently running */
-       BOOL callback_running;
+       bool callback_running;
 
        /* an event context for anyone wanting to use the credentials */
        struct event_context *ev;
index 7ddc2859cc8e4f44f78c3d02417728ef5e36a827..d129b194af825d170f807487da5338bf2a5152b4 100644 (file)
@@ -134,10 +134,10 @@ struct gensec_security_ops {
        NTSTATUS (*session_key)(struct gensec_security *gensec_security, DATA_BLOB *session_key);
        NTSTATUS (*session_info)(struct gensec_security *gensec_security, 
                                 struct auth_session_info **session_info); 
-       BOOL (*have_feature)(struct gensec_security *gensec_security,
+       bool (*have_feature)(struct gensec_security *gensec_security,
                                    uint32_t feature); 
-       BOOL enabled;
-       BOOL kerberos;
+       bool enabled;
+       bool kerberos;
        enum gensec_priority priority;
 };
        
@@ -154,7 +154,7 @@ struct gensec_security {
        struct cli_credentials *credentials;
        struct gensec_target target;
        enum gensec_role gensec_role;
-       BOOL subcontext;
+       bool subcontext;
        uint32_t want_features;
        struct event_context *event_ctx;
        struct messaging_context *msg_ctx; /* only valid as server */
index c3dcd68cfac585b5235b63434dcd5dd7ea5e4368..2ddea290068ed4c62c36264519a275ef51e6e89e 100644 (file)
@@ -30,7 +30,7 @@ enum schannel_position {
 struct schannel_state {
        enum schannel_position state;
        uint32_t seq_num;
-       BOOL initiator;
+       bool initiator;
        struct creds_CredentialState *creds;
 };
 
index 48402caeda10fa066d66d721d916f7ec555359c7..a3005b501934d1e10c1005f52bc2743beca1fca6 100644 (file)
@@ -80,14 +80,14 @@ int create_kerberos_key_from_string_direct(krb5_context context, krb5_principal
 krb5_const_principal get_principal_from_tkt(krb5_ticket *tkt);
 krb5_error_code get_kerberos_allowed_etypes(krb5_context context, krb5_enctype **enctypes);
 void free_kerberos_etypes(krb5_context context, krb5_enctype *enctypes);
-BOOL get_krb5_smb_session_key(krb5_context context, krb5_auth_context auth_context, DATA_BLOB *session_key, BOOL remote);
+bool get_krb5_smb_session_key(krb5_context context, krb5_auth_context auth_context, DATA_BLOB *session_key, bool remote);
 krb5_error_code ads_krb5_mk_req(krb5_context context, 
                                krb5_auth_context *auth_context, 
                                const krb5_flags ap_req_options,
                                const char *principal,
                                krb5_ccache ccache, 
                                krb5_data *outbuf);
-BOOL get_auth_data_from_tkt(TALLOC_CTX *mem_ctx, DATA_BLOB *auth_data, krb5_ticket *tkt);
+bool get_auth_data_from_tkt(TALLOC_CTX *mem_ctx, DATA_BLOB *auth_data, krb5_ticket *tkt);
  NTSTATUS ads_verify_ticket(TALLOC_CTX *mem_ctx, 
                            struct smb_krb5_context *smb_krb5_context,
                            krb5_auth_context *auth_context,
@@ -107,7 +107,7 @@ krb5_principal kerberos_fetch_salt_princ_for_host_princ(krb5_context context,
                                                        krb5_principal host_princ,
                                                        int enctype);
 void kerberos_set_creds_enctype(krb5_creds *pcreds, int enctype);
-BOOL kerberos_compatible_enctypes(krb5_context context, krb5_enctype enctype1, krb5_enctype enctype2);
+bool kerberos_compatible_enctypes(krb5_context context, krb5_enctype enctype1, krb5_enctype enctype2);
 void kerberos_free_data_contents(krb5_context context, krb5_data *pdata);
 krb5_error_code smb_krb5_kt_free_entry(krb5_context context, krb5_keytab_entry *kt_entry);
 char *smb_get_krb5_error_message(krb5_context context, krb5_error_code code, TALLOC_CTX *mem_ctx);
index 577239771c210988e93eb032a2402df7c70e30c8..282fcbc51056e4ae3637247ae6670ce5976678cd 100644 (file)
@@ -83,13 +83,13 @@ struct gensec_ntlmssp_state
        enum samr_Role server_role;
        uint32_t expected_state;
 
-       BOOL unicode;
-       BOOL use_ntlmv2;
-       BOOL use_nt_response;  /* Set to 'False' to debug what happens when the NT response is omited */
-       BOOL allow_lm_key;     /* The LM_KEY code is not functional at this point, and it's not 
+       bool unicode;
+       bool use_ntlmv2;
+       bool use_nt_response;  /* Set to 'False' to debug what happens when the NT response is omited */
+       bool allow_lm_key;     /* The LM_KEY code is not functional at this point, and it's not 
                                  very secure anyway */
 
-       BOOL server_multiple_authentications;  /* Set to 'True' to allow squid 2.5 
+       bool server_multiple_authentications;  /* Set to 'True' to allow squid 2.5 
                                                  style 'challenge caching' */
 
        char *user;
@@ -128,7 +128,7 @@ struct gensec_ntlmssp_state
         * @return Can the challenge be set to arbitary values?
         *
         */
-       BOOL (*may_set_challenge)(const struct gensec_ntlmssp_state *);
+       bool (*may_set_challenge)(const struct gensec_ntlmssp_state *);
 
        /**
         * Callback to set the 'challenge' used for NTLM authentication.  
@@ -158,7 +158,7 @@ struct gensec_ntlmssp_state
        const char *server_name;
        const char *(*get_domain)(void);
 
-       BOOL doing_ntlm2; 
+       bool doing_ntlm2; 
 
        union {
                /* NTLM */
index f0f741cf57caf8c6d261eb27cc67870daea9aa34..2fe8de6ea3c6b21c1078558be0595c0335bea6f8 100644 (file)
@@ -36,7 +36,7 @@ struct argdef
 
        union
        {
-               BOOL            bval;
+               bool            bval;
                uint64_t        nval;
                const char *    pval;
        } arg_val;
@@ -45,14 +45,14 @@ struct argdef
 int set_arg_argv(const char * argv);
 void set_arg_val(const char * name, ...);
 
-BOOL check_arg_bool(const char * name);
+bool check_arg_bool(const char * name);
 uint64_t check_arg_numeric(const char * name);
 const char * check_arg_pathname(const char * name);
 
-typedef BOOL (*dd_seek_func)(void * handle, uint64_t offset);
-typedef BOOL (*dd_read_func)(void * handle, uint8_t * buf,
+typedef bool (*dd_seek_func)(void * handle, uint64_t offset);
+typedef bool (*dd_read_func)(void * handle, uint8_t * buf,
                                uint64_t wanted, uint64_t * actual);
-typedef BOOL (*dd_write_func)(void * handle, uint8_t * buf,
+typedef bool (*dd_write_func)(void * handle, uint8_t * buf,
                                uint64_t wanted, uint64_t * actual);
 
 struct dd_stats_record
@@ -90,9 +90,9 @@ struct dd_iohandle
 
 struct dd_iohandle * dd_open_path(const char * path,
                                uint64_t io_size, int options);
-BOOL dd_fill_block(struct dd_iohandle * h, uint8_t * buf,
+bool dd_fill_block(struct dd_iohandle * h, uint8_t * buf,
                uint64_t * buf_size, uint64_t need_size, uint64_t block_size);
-BOOL dd_flush_block(struct dd_iohandle * h, uint8_t * buf,
+bool dd_flush_block(struct dd_iohandle * h, uint8_t * buf,
                uint64_t * buf_size, uint64_t block_size);
 
 /* vim: set sw=8 sts=8 ts=8 tw=79 : */
index a345fa2e818ed0eb0c86e542e4418178b9f00363..48c3c2ea4cf0f8fd61e00b5b84a6329de79d9959 100644 (file)
@@ -36,5 +36,5 @@ double timeval_elapsed(struct timeval *tv);
 char **file_lines_load(const char *fname, int *numlines, TALLOC_CTX *mem_ctx);
 char *hex_encode(TALLOC_CTX *mem_ctx, const unsigned char *buff_in, size_t len);
 _PUBLIC_ const char **str_list_add(const char **list, const char *s);
-_PUBLIC_ int set_blocking(int fd, BOOL set);
+_PUBLIC_ int set_blocking(int fd, bool set);
 
index dd50eae684b3f226e283925d209a28822f0a7f84..1125f775ffc2af89b419f3a3db6884435edf9761 100644 (file)
@@ -59,7 +59,7 @@ struct dsdb_attribute {
 
        uint32_t searchFlags;
        uint32_t systemFlags;
-       BOOL isMemberOfPartialAttributeSet;
+       bool isMemberOfPartialAttributeSet;
        uint32_t linkID;
 
        const char *attributeSyntax_oid;
@@ -67,21 +67,21 @@ struct dsdb_attribute {
        uint32_t oMSyntax;
        struct ldb_val oMObjectClass;
 
-       BOOL isSingleValued;
+       bool isSingleValued;
        uint32_t rangeLower;
        uint32_t rangeUpper;
-       BOOL extendedCharsAllowed;
+       bool extendedCharsAllowed;
 
        uint32_t schemaFlagsEx;
        struct ldb_val msDs_Schema_Extensions;
 
-       BOOL showInAdvancedViewOnly;
+       bool showInAdvancedViewOnly;
        const char *adminDisplayName;
        const char *adminDescription;
        const char *classDisplayName;
-       BOOL isEphemeral;
-       BOOL isDefunct;
-       BOOL systemOnly;
+       bool isEphemeral;
+       bool isDefunct;
+       bool systemOnly;
 
        /* internal stuff */
        const struct dsdb_syntax *syntax;
@@ -118,13 +118,13 @@ struct dsdb_class {
        uint32_t schemaFlagsEx;
        struct ldb_val msDs_Schema_Extensions;
 
-       BOOL showInAdvancedViewOnly;
+       bool showInAdvancedViewOnly;
        const char *adminDisplayName;
        const char *adminDescription;
        const char *classDisplayName;
-       BOOL defaultHidingValue;
-       BOOL isDefunct;
-       BOOL systemOnly;
+       bool defaultHidingValue;
+       bool isDefunct;
+       bool systemOnly;
 };
 
 struct dsdb_schema_oid_prefix {
index 20bf7c3defe68c7cebc636463951e4e332b0209a..a31b4c59c76b87d4ce2504621336067daff5399d 100644 (file)
 
 #include "libcli/util/nt_status.h"
 
-#include <stdbool.h>
 #include <stdlib.h>
-typedef bool BOOL;
-
-#define False false
-#define True true
 
 /* used to hold an arbitrary blob of data */
 typedef struct datablob {
index 54f6fe9385641a4bc6d3cb193e18a1506af84222..ac6204921c1ab01662dca6305729f3e894e3aed3 100644 (file)
 /* Lists, trees, caching, database... */
 #include "talloc/talloc.h"
 #include "core.h"
+#include <stdbool.h>
 #include "charset/charset.h"
 #include "util/util.h"
 #include "param/param.h"
 #include "librpc/gen_ndr/misc.h"
 
+typedef bool BOOL;
+
+#define False false
+#define True true
+
 struct smbcli_tree;
 #include "libcli/util/error.h"
 
index 4c20cca00347542c9bf085b513c68cbd692f23f5..9d031b8f7dc5769a1a0aa053b448d4cbc9158148 100644 (file)
@@ -31,7 +31,7 @@ struct socket_address;
 
 extern TALLOC_CTX *kdc_mem_ctx;
 
-BOOL kpasswdd_process(struct kdc_server *kdc,
+bool kpasswdd_process(struct kdc_server *kdc,
                      TALLOC_CTX *mem_ctx, 
                      DATA_BLOB *input, 
                      DATA_BLOB *reply,
index bbb285ef4df15adb153dba95ac131c7993f2683b..df0bb92175726a44bc1c72f34b2f84c8e4de9118 100644 (file)
@@ -36,7 +36,7 @@ struct ldapsrv_connection {
                struct socket_context *sasl;
        } sockets;
 
-       BOOL global_catalog;
+       bool global_catalog;
 
        struct packet_context *packet;
 
index dacb65ccad30ffde668b8d1ef07f01d32d671256..d10b3bb03c258c0d1e404079665d67a84fb01205 100644 (file)
@@ -148,7 +148,7 @@ size_t smb_iconv(smb_iconv_t cd,
        return 0;
 }
 
-static BOOL is_utf16(const char *name)
+static bool is_utf16(const char *name)
 {
        return strcasecmp(name, "UCS-2LE") == 0 ||
                strcasecmp(name, "UTF-16LE") == 0;
index feac7a65e99a8b8bdf691539db8759c5f57b0513..3fa3bf75a95ba691d2e633c1badae6ae51b98dc0 100644 (file)
@@ -160,10 +160,10 @@ _PUBLIC_ int strcasecmp_m(const char *s1, const char *s2)
  * Based on a routine by GJC@VILLAGE.COM. 
  * Extensively modified by Andrew.Tridgell@anu.edu.au
  **/
-_PUBLIC_ BOOL next_token(const char **ptr,char *buff, const char *sep, size_t bufsize)
+_PUBLIC_ bool next_token(const char **ptr,char *buff, const char *sep, size_t bufsize)
 {
        const char *s;
-       BOOL quoted;
+       bool quoted;
        size_t len=1;
 
        if (!ptr)
@@ -248,7 +248,7 @@ _PUBLIC_ int strncasecmp_m(const char *s1, const char *s2, size_t n)
  *
  * @note The comparison is case-insensitive.
  **/
-_PUBLIC_ BOOL strequal_w(const char *s1, const char *s2)
+_PUBLIC_ bool strequal_w(const char *s1, const char *s2)
 {
        return strcasecmp_m(s1,s2) == 0;
 }
@@ -256,7 +256,7 @@ _PUBLIC_ BOOL strequal_w(const char *s1, const char *s2)
 /**
  Compare 2 strings (case sensitive).
 **/
-_PUBLIC_ BOOL strcsequal_w(const char *s1,const char *s2)
+_PUBLIC_ bool strcsequal_w(const char *s1,const char *s2)
 {
        if (s1 == s2)
                return(True);
@@ -429,7 +429,7 @@ _PUBLIC_ char *strrchr_m(const char *s, char c)
 /**
   return True if any (multi-byte) character is lower case
 */
-_PUBLIC_ BOOL strhaslower(const char *string)
+_PUBLIC_ bool strhaslower(const char *string)
 {
        while (*string) {
                size_t c_size;
@@ -452,7 +452,7 @@ _PUBLIC_ BOOL strhaslower(const char *string)
 /**
   return True if any (multi-byte) character is upper case
 */
-_PUBLIC_ BOOL strhasupper(const char *string)
+_PUBLIC_ bool strhasupper(const char *string)
 {
        while (*string) {
                size_t c_size;
index 40640c85458e2dbd28d0e84c82bc404d14daca73..bcfc1f1ab4afda2d232269f5abde39777bc81572 100644 (file)
@@ -29,7 +29,7 @@ struct irpc_message {
        void *private;
        struct irpc_header header;
        struct ndr_pull *ndr;
-       BOOL defer_reply;
+       bool defer_reply;
        struct messaging_context *msg_ctx;
        struct irpc_list *irpc;
        void *data;
@@ -67,8 +67,8 @@ struct irpc_request {
        int callid;
        void *r;
        NTSTATUS status;
-       BOOL done;
-       BOOL reject_free;
+       bool done;
+       bool reject_free;
        TALLOC_CTX *mem_ctx;
        struct {
                void (*fn)(struct irpc_request *);
index acfe056616448fa085de7b4510cfb056d0ed0d8a..ded5e4cc487a8174d4be0096b32ac2e98f7e0afa 100644 (file)
@@ -257,7 +257,7 @@ _PUBLIC_ char *reg_val_data_string(TALLOC_CTX *mem_ctx, uint32_t type,
                                                                   const DATA_BLOB data);
 _PUBLIC_ char *reg_val_description(TALLOC_CTX *mem_ctx, const char *name,
                                                                   uint32_t type, const DATA_BLOB data);
-_PUBLIC_ BOOL reg_string_to_val(TALLOC_CTX *mem_ctx, const char *type_str, const char *data_str, uint32_t *type, DATA_BLOB *data);
+_PUBLIC_ bool reg_string_to_val(TALLOC_CTX *mem_ctx, const char *type_str, const char *data_str, uint32_t *type, DATA_BLOB *data);
 WERROR reg_open_key_abs(TALLOC_CTX *mem_ctx, struct registry_context *handle, const char *name, struct registry_key **result);
 WERROR reg_key_del_abs(struct registry_context *ctx, const char *path);
 WERROR reg_key_add_abs(TALLOC_CTX *mem_ctx, struct registry_context *ctx, const char *path, uint32_t access_mask, struct security_descriptor *sec_desc, struct registry_key **result);
index 47716f89cf618bb58d6bb4ef6441374917d448bb..6afd1bc44cc53b504301659934c780ded976cc82 100644 (file)
@@ -96,7 +96,7 @@ _PUBLIC_ char *reg_val_description(TALLOC_CTX *mem_ctx, const char *name,
                                        reg_val_data_string(mem_ctx, data_type, data));
 }
 
-_PUBLIC_ BOOL reg_string_to_val(TALLOC_CTX *mem_ctx, const char *type_str, const char *data_str, uint32_t *type, DATA_BLOB *data)
+_PUBLIC_ bool reg_string_to_val(TALLOC_CTX *mem_ctx, const char *type_str, const char *data_str, uint32_t *type, DATA_BLOB *data)
 {
        int i;
        *type = -1;
@@ -110,7 +110,7 @@ _PUBLIC_ BOOL reg_string_to_val(TALLOC_CTX *mem_ctx, const char *type_str, const
        }
 
        if (*type == -1) 
-               return False;
+               return false;
 
        /* Convert data appropriately */
 
@@ -138,9 +138,9 @@ _PUBLIC_ BOOL reg_string_to_val(TALLOC_CTX *mem_ctx, const char *type_str, const
                        
                default:
                        /* FIXME */
-                       return False;
+                       return false;
        }
-       return True;
+       return true;
 }
 
 /** Open a key by name (including the predefined key name!) */
index b7961cde11a4de8774ca7de587c11f383fe3fa10..39e2448b9810a6286b13f2c892f853505db30a4f 100644 (file)
@@ -118,7 +118,7 @@ char *smbpasswd_sethexpwd(TALLOC_CTX *mem_ctx, struct samr_Password *pwd, uint16
 uint16_t smbpasswd_decode_acb_info(const char *p)
 {
        uint16_t acb_info = 0;
-       BOOL finished = False;
+       bool finished = false;
 
        /*
         * Check if the account type bits have been encoded after the
@@ -170,7 +170,7 @@ uint16_t smbpasswd_decode_acb_info(const char *p)
                case '\n':
                case ']':
                default:  
-                       finished = True;
+                       finished = true;
                        break;
                }
        }
index 84fef638bfa6bf0c42102a6a9325c064a28c18b1..8e6b0daf2b69d71b987cb3b9e9e457ef725f8886 100644 (file)
@@ -30,7 +30,7 @@
 #define TDB_FORMAT_STRING_V2       "dddddddBBBBBBBBBBBBddBBBwwdBwwd"
 #define TDBSAM_VERSION_STRING      "INFO/version"
 
-static BOOL init_sam_from_buffer_v0(TDB_CONTEXT *tdb, struct samba3_samaccount *sampass, TDB_DATA buf)
+static bool init_sam_from_buffer_v0(TDB_CONTEXT *tdb, struct samba3_samaccount *sampass, TDB_DATA buf)
 {
        uint32_t        username_len, domain_len, nt_username_len,
                dir_drive_len, unknown_str_len, munged_dial_len,
@@ -43,7 +43,7 @@ static BOOL init_sam_from_buffer_v0(TDB_CONTEXT *tdb, struct samba3_samaccount *
        
        if(sampass == NULL || buf.dptr == NULL) {
                DEBUG(0, ("init_sam_from_buffer_v0: NULL parameters found!\n"));
-               return False;
+               return false;
        }
 
        /* unpack the buffer into variables */
@@ -80,13 +80,13 @@ static BOOL init_sam_from_buffer_v0(TDB_CONTEXT *tdb, struct samba3_samaccount *
                &sampass->unknown_6);                                   /* d */
                
        if (len == (uint32_t) -1)  {
-               return False;
+               return false;
        }
 
-       return True;
+       return true;
 }
 
-static BOOL init_sam_from_buffer_v1(TDB_CONTEXT *tdb, struct samba3_samaccount *sampass, TDB_DATA buf)
+static bool init_sam_from_buffer_v1(TDB_CONTEXT *tdb, struct samba3_samaccount *sampass, TDB_DATA buf)
 {
        uint32_t        username_len, domain_len, nt_username_len,
                dir_drive_len, unknown_str_len, munged_dial_len,
@@ -99,7 +99,7 @@ static BOOL init_sam_from_buffer_v1(TDB_CONTEXT *tdb, struct samba3_samaccount *
        
        if(sampass == NULL || buf.dptr == NULL) {
                DEBUG(0, ("init_sam_from_buffer_v1: NULL parameters found!\n"));
-               return False;
+               return false;
        }
 
        /* unpack the buffer into variables */
@@ -138,13 +138,13 @@ static BOOL init_sam_from_buffer_v1(TDB_CONTEXT *tdb, struct samba3_samaccount *
                &sampass->unknown_6);                                   /* d */
                
        if (len == (uint32_t) -1)  {
-               return False;
+               return false;
        }
 
-       return True;
+       return true;
 }
 
-static BOOL init_sam_from_buffer_v2(TDB_CONTEXT *tdb, struct samba3_samaccount *sampass, TDB_DATA buf)
+static bool init_sam_from_buffer_v2(TDB_CONTEXT *tdb, struct samba3_samaccount *sampass, TDB_DATA buf)
 {
        uint32_t        username_len, domain_len, nt_username_len,
                dir_drive_len, unknown_str_len, munged_dial_len,
@@ -156,7 +156,7 @@ static BOOL init_sam_from_buffer_v2(TDB_CONTEXT *tdb, struct samba3_samaccount *
        
        if(sampass == NULL || buf.dptr == NULL) {
                DEBUG(0, ("init_sam_from_buffer_v2: NULL parameters found!\n"));
-               return False;
+               return false;
        }
 
        /* unpack the buffer into variables */
@@ -196,10 +196,10 @@ static BOOL init_sam_from_buffer_v2(TDB_CONTEXT *tdb, struct samba3_samaccount *
                &sampass->unknown_6);                                   /* d */
                
        if (len == (uint32_t) -1)  {
-               return False;
+               return false;
        }
 
-       return True;
+       return true;
 }
 
 NTSTATUS samba3_read_tdbsam(const char *filename, TALLOC_CTX *ctx, struct samba3_samaccount **accounts, uint32_t *count)
@@ -233,7 +233,7 @@ NTSTATUS samba3_read_tdbsam(const char *filename, TALLOC_CTX *ctx, struct samba3
 
        for (key = tdb_firstkey(tdb); key.dptr; key = tdb_nextkey(tdb, key))
        {
-               BOOL ret;
+               bool ret;
                if (strncmp((const char *)key.dptr, "USER_", 5) != 0) 
                        continue;
 
@@ -246,7 +246,7 @@ NTSTATUS samba3_read_tdbsam(const char *filename, TALLOC_CTX *ctx, struct samba3
                        case 0: ret = init_sam_from_buffer_v0(tdb, &(*accounts)[*count], val); break;
                        case 1: ret = init_sam_from_buffer_v1(tdb, &(*accounts)[*count], val); break;
                        case 2: ret = init_sam_from_buffer_v2(tdb, &(*accounts)[*count], val); break;
-                       default: ret = False; break;
+                       default: ret = false; break;
 
                }
 
index 6bc03188a56e1d14a331bf4081d80d6c7cd89047..0c4fc0bb95181a341aacd91ec7d3981148930e79 100644 (file)
@@ -164,10 +164,10 @@ struct socket_address *socket_address_from_sockaddr(TALLOC_CTX *mem_ctx,
                                                    struct sockaddr *sockaddr, 
                                                    size_t addrlen);
 const struct socket_ops *socket_getops_byname(const char *name, enum socket_type type);
-BOOL allow_access(TALLOC_CTX *mem_ctx,
+bool allow_access(TALLOC_CTX *mem_ctx,
                  const char **deny_list, const char **allow_list,
                  const char *cname, const char *caddr);
-BOOL socket_check_access(struct socket_context *sock, 
+bool socket_check_access(struct socket_context *sock, 
                         const char *service_name,
                         const char **allow_list, const char **deny_list);
 
index dac5b7e2ade023d4e04642ad1edc8ff31e2d9ad7..6f1e3d242476ffd8a4f749dbe6d671a412cbe07f 100644 (file)
@@ -52,13 +52,13 @@ struct socket_context *tls_init_client(struct socket_context *sock,
 /*
   return True if a connection used tls
 */
-BOOL tls_enabled(struct socket_context *tls);
+bool tls_enabled(struct socket_context *tls);
 
 
 /*
   true if tls support is compiled in
 */
-BOOL tls_support(struct tls_params *parms);
+bool tls_support(struct tls_params *parms);
 
 const struct socket_ops *socket_tls_ops(enum socket_type type);
 
index 2e88571ee8024d7ca1ebb43ab51f85c6461c41c6..e957ccea19a44825af91875ce856f00acf5ceabb 100644 (file)
@@ -47,7 +47,7 @@ struct cldap_request {
        int timeout;
        int num_retries;
 
-       BOOL is_reply;
+       bool is_reply;
 
        /* the ldap message_id */
        int message_id;
index 36ca0e9293ea01100924ca32e1e46c5c00a3ea1f..db0ecf9af6fcf70f937c48339553918a74ba979f 100644 (file)
@@ -59,7 +59,7 @@ struct composite_context {
                void *private_data;
        } async;
 
-       BOOL used_wait;
+       bool used_wait;
 };
 
 struct irpc_request;
index fd622de4494664934fe7737e80b91d3f441c8bcd..022c70e36aee81320bd1f4919d888e6c2e4041cc 100644 (file)
@@ -143,7 +143,7 @@ struct ldap_SearchRequest {
        enum ldap_deref deref;
        uint32_t timelimit;
        uint32_t sizelimit;
-       BOOL attributesonly;
+       bool attributesonly;
        struct ldb_parse_tree *tree;
        int num_attributes;
        const char **attributes;
@@ -190,7 +190,7 @@ struct ldap_DelRequest {
 struct ldap_ModifyDNRequest {
        const char *dn;
        const char *newrdn;
-       BOOL deleteolddn;
+       bool deleteolddn;
        const char *newsuperior;/* optional */
 };
 
index 0850e8ff64b4334497631a3adb0025559228a5ce..d2a12ee8b5c2607c8a1eeff020e6d07f061965c7 100644 (file)
@@ -53,7 +53,7 @@ struct ldap_connection {
        struct socket_context *sock;
        char *host;
        uint16_t port;
-       BOOL ldaps;
+       bool ldaps;
 
        const char *auth_dn;
        const char *simple_pw;
index 3cbbae3fb2f9abc4e198b79e27cdfe93037a9121..e383591089d2273ff9ddf69be69fe0a8ccaf3cda 100644 (file)
@@ -56,7 +56,7 @@ struct nbt_name_request {
        int num_retries;
 
        /* whether we have received a WACK */
-       BOOL received_wack;
+       bool received_wack;
 
        /* the timeout event */
        struct timed_event *te;
@@ -65,13 +65,13 @@ struct nbt_name_request {
        uint16_t name_trn_id;
 
        /* is it a reply? */
-       BOOL is_reply;
+       bool is_reply;
        
        /* the encoded request */
        DATA_BLOB encoded;
 
        /* shall we allow multiple replies? */
-       BOOL allow_multiple_replies;
+       bool allow_multiple_replies;
 
        unsigned int num_replies;
        struct nbt_name_reply {
@@ -128,8 +128,8 @@ struct nbt_name_query {
        struct {
                struct nbt_name name;
                const char *dest_addr;
-               BOOL broadcast;
-               BOOL wins_lookup;
+               bool broadcast;
+               bool wins_lookup;
                int timeout; /* in seconds */
                int retries;
        } in;
@@ -163,9 +163,9 @@ struct nbt_name_register {
                const char *dest_addr;
                const char *address;
                uint16_t nb_flags;
-               BOOL register_demand;
-               BOOL broadcast;
-               BOOL multi_homed;
+               bool register_demand;
+               bool broadcast;
+               bool multi_homed;
                uint32_t ttl;
                int timeout; /* in seconds */
                int retries;
@@ -215,7 +215,7 @@ struct nbt_name_refresh {
                const char *dest_addr;
                const char *address;
                uint16_t nb_flags;
-               BOOL broadcast;
+               bool broadcast;
                uint32_t ttl;
                int timeout; /* in seconds */
                int retries;
@@ -252,7 +252,7 @@ struct nbt_name_release {
                const char *dest_addr;
                const char *address;
                uint16_t nb_flags;
-               BOOL broadcast;
+               bool broadcast;
                int timeout; /* in seconds */
                int retries;
        } in;
index 6b3ca94506dbceae2a8fe0da7dc941c585e0ca94..23de6c3838e6342eeb47cdd8eb8361e5aa64048f 100644 (file)
@@ -608,8 +608,8 @@ union smb_fileinfo {
                        uint64_t alloc_size;
                        uint64_t size;
                        uint32_t nlink;
-                       BOOL delete_pending;
-                       BOOL directory;
+                       bool delete_pending;
+                       bool directory;
                } out;
        } standard_info;
        
@@ -976,7 +976,7 @@ union smb_setfileinfo {
                enum smb_setfileinfo_level level;
                struct {
                        union smb_handle_or_path file;
-                       BOOL delete_on_close;
+                       bool delete_on_close;
                } in;
        } disposition_info;
 
@@ -1633,7 +1633,7 @@ union smb_read {
                        uint16_t mincnt;
                        uint32_t maxcnt;
                        uint16_t remaining;
-                       BOOL read_for_execute;
+                       bool read_for_execute;
                } in;
                struct {
                        uint8_t *data;
@@ -2035,7 +2035,7 @@ union smb_ioctl {
                struct {
                        union smb_handle file;
                        uint32_t function;
-                       BOOL fsctl;
+                       bool fsctl;
                        uint8_t filter;
                        uint32_t max_data;
                        DATA_BLOB blob;
@@ -2193,7 +2193,7 @@ union smb_notify {
                        union smb_handle file;
                        uint32_t buffer_size;
                        uint32_t completion_filter;
-                       BOOL recursive;
+                       bool recursive;
                } in;
 
                struct {
@@ -2581,7 +2581,7 @@ union smb_search_data {
 };
 
 /* Callback function passed to the raw search interface. */
-typedef BOOL (*smbcli_search_callback)(void *private, const union smb_search_data *file);
+typedef bool (*smbcli_search_callback)(void *private, const union smb_search_data *file);
 
 enum smb_search_close_level {RAW_FINDCLOSE_GENERIC, RAW_FINDCLOSE_FCLOSE, RAW_FINDCLOSE_FINDCLOSE};
 
index 645ac4635604c74fbdd8170d518a357688ee7896..a11a9c9e5854f6c3befde8b686bf372232a959a9 100644 (file)
@@ -142,7 +142,7 @@ struct smbcli_transport {
 
        struct {
                /* a oplock break request handler */
-               BOOL (*handler)(struct smbcli_transport *transport, 
+               bool (*handler)(struct smbcli_transport *transport, 
                                uint16_t tid, uint16_t fnum, uint8_t level, void *private);
                /* private data passed to the oplock handler */
                void *private;
index 62b06579d5d9c231f0d983e2698bac2cddc4c97c..56e977ed7c3465dd0e21e5a3f66723c0c6ded996 100644 (file)
@@ -34,10 +34,10 @@ struct smb_signing_context {
        enum smb_signing_engine_state signing_state;
        DATA_BLOB mac_key;
        uint32_t next_seq_num;
-       BOOL allow_smb_signing;
-       BOOL doing_signing;
-       BOOL mandatory_signing;
-       BOOL seen_valid; /* Have I ever seen a validly signed packet? */
+       bool allow_smb_signing;
+       bool doing_signing;
+       bool mandatory_signing;
+       bool seen_valid; /* Have I ever seen a validly signed packet? */
 };
 
 #endif
index cad9ebd38e978fa8ec57e583c3a580cf210f7f5b..33876c6f7c5a0f383a3cee482e864503d50c9dc6 100644 (file)
@@ -128,8 +128,8 @@ struct smb2_request {
        uint64_t seqnum;
 
        struct {
-               BOOL do_cancel;
-               BOOL can_cancel;
+               bool do_cancel;
+               bool can_cancel;
                uint32_t pending_id;
        } cancel;
 
index e560c790f745904be25c029117e3ececf477d5be..617daaf442301aa36f6ef49176cb090eeb0107e5 100644 (file)
@@ -89,12 +89,12 @@ struct smb_composite_connect {
                const char *service;
                const char *service_type;
                struct cli_credentials *credentials;
-               BOOL fallback_to_anonymous;
+               bool fallback_to_anonymous;
                const char *workgroup;
        } in;
        struct {
                struct smbcli_tree *tree;
-               BOOL anonymous_fallback_done;
+               bool anonymous_fallback_done;
        } out;
 };
 
index 6c70423e9658950456f1d8c91a273c3cfec9a97a..612a8a932fd855a33c307978e0325bd51f9f5d33 100644 (file)
@@ -31,7 +31,7 @@ struct asn1_data {
        size_t length;
        off_t ofs;
        struct nesting *nesting;
-       BOOL has_error;
+       bool has_error;
 };
 
 #define ASN1_APPLICATION(x) ((x)+0x60)
index b8473d10216b1f39bdbe442d0d03e2a3dc993259..3265024407c91ebc2ed85f6978792f6bf8ef0c37 100644 (file)
@@ -45,15 +45,15 @@ struct wrepl_socket {
        uint32_t timeout_count;
 
        /* remember is the socket is dead */
-       BOOL dead;
+       bool dead;
 
        /* remember if we need to free the wrepl_socket at the end of wrepl_socket_dead() */
-       BOOL free_skipped;
+       bool free_skipped;
 };
 
 struct wrepl_send_ctrl {
-       BOOL send_only;
-       BOOL disconnect_after_send;
+       bool send_only;
+       bool disconnect_after_send;
 };
 
 enum wrepl_request_state {
@@ -71,7 +71,7 @@ struct wrepl_request {
        struct wrepl_socket *wrepl_socket;
 
        enum wrepl_request_state state;
-       BOOL trigger;
+       bool trigger;
        NTSTATUS status;
 
        struct timed_event *te;
@@ -141,7 +141,7 @@ struct wrepl_pull_names {
                        enum wrepl_name_type type;
                        enum wrepl_name_state state;
                        enum wrepl_name_node node;
-                       BOOL is_static;
+                       bool is_static;
                        uint32_t raw_flags;
                        uint64_t version_id;
                        const char *owner;
index 208162d3624f46b72beecf47ac668e0e1c9fb69d..6da4564cb37065d1984e1e5c4e9728df3825fcc4 100644 (file)
@@ -42,7 +42,7 @@ struct libnet_JoinDomain {
                const char *binding;
                enum libnet_JoinDomain_level level;
                uint32_t  acct_type;
-               BOOL recreate_account;
+               bool recreate_account;
        } in;
 
        struct {
index e44b12746d64402cf81672571b2082b719fac4e4..e138b3eac9940b7da38e6fc0d72f78bb23e2a823 100644 (file)
@@ -296,7 +296,7 @@ struct ndr_interface_call {
        ndr_push_flags_fn_t ndr_push;
        ndr_pull_flags_fn_t ndr_pull;
        ndr_print_function_t ndr_print;
-       BOOL async;
+       bool async;
 };
 
 struct ndr_interface_string_array {
index 88b6ff20c2a2500b3171544ebc2c2e0576a50eb9..746f6b6d50685514db18374142ebe1fbadf90b2c 100644 (file)
@@ -70,7 +70,7 @@ struct dcerpc_connection {
                const char *(*target_hostname)(struct dcerpc_connection *);
 
                /* send a request to the server */
-               NTSTATUS (*send_request)(struct dcerpc_connection *, DATA_BLOB *, BOOL trigger_read);
+               NTSTATUS (*send_request)(struct dcerpc_connection *, DATA_BLOB *, bool trigger_read);
 
                /* send a read request to the server */
                NTSTATUS (*send_read)(struct dcerpc_connection *);
@@ -207,8 +207,8 @@ struct rpc_request {
        const struct GUID *object;
        uint16_t opnum;
        DATA_BLOB request_data;
-       BOOL async_call;
-       BOOL ignore_timeout;
+       bool async_call;
+       bool ignore_timeout;
 
        /* use by the ndr level async recv call */
        struct {
index 30ee7b43547a2ad30b21d876e7784b80cf5acb60..27b745fadb24c23be57cb66240a6410ba21557a9 100644 (file)
@@ -36,7 +36,7 @@ struct winsdb_record {
        enum wrepl_name_type type;
        enum wrepl_name_state state;
        enum wrepl_name_node node;
-       BOOL is_static;
+       bool is_static;
        time_t expire_time;
        uint64_t version;
        const char *wins_owner;
index 75c040d8302a3dcc9b35ff99ac28d8417d634b99..724b830604a928cc1bf1d8fcd4610d0753cd15d3 100644 (file)
@@ -301,7 +301,7 @@ struct winbindd_request {
                        fstring groupname;
                } acct_mgt;
                struct {
-                       BOOL is_primary;
+                       bool is_primary;
                        fstring dcname;
                } init_conn;
                struct {
@@ -313,7 +313,7 @@ struct winbindd_request {
                        uint32 type;
                        uint32 id;
                } dual_idmapset;
-               BOOL list_all_domains;
+               bool list_all_domains;
 
                struct {
                        uid_t uid;
@@ -450,9 +450,9 @@ struct winbindd_response {
                        fstring name;
                        fstring alt_name;
                        fstring sid;
-                       BOOL native_mode;
-                       BOOL active_directory;
-                       BOOL primary;
+                       bool native_mode;
+                       bool active_directory;
+                       bool primary;
                        uint32 sequence_number;
                } domain_info;
                struct {
index 835fb19046a44714c8bd7b3a39d67b9e4ad79757..231ae3d7deb05417d42181a86190c8455ff6cdbc 100644 (file)
@@ -26,16 +26,16 @@ struct opendb_ops {
                                     struct odb_context *odb, DATA_BLOB *file_key);
        NTSTATUS (*odb_open_file)(struct odb_lock *lck, void *file_handle,
                                  uint32_t stream_id, uint32_t share_access, 
-                                 uint32_t access_mask, BOOL delete_on_close,
+                                 uint32_t access_mask, bool delete_on_close,
                                  const char *path, 
                                  uint32_t oplock_level, uint32_t *oplock_granted);
        NTSTATUS (*odb_open_file_pending)(struct odb_lock *lck, void *private);
        NTSTATUS (*odb_close_file)(struct odb_lock *lck, void *file_handle);
        NTSTATUS (*odb_remove_pending)(struct odb_lock *lck, void *private);
        NTSTATUS (*odb_rename)(struct odb_lock *lck, const char *path);
-       NTSTATUS (*odb_set_delete_on_close)(struct odb_lock *lck, BOOL del_on_close);
+       NTSTATUS (*odb_set_delete_on_close)(struct odb_lock *lck, bool del_on_close);
        NTSTATUS (*odb_get_delete_on_close)(struct odb_context *odb, 
-                                           DATA_BLOB *key, BOOL *del_on_close, 
+                                           DATA_BLOB *key, bool *del_on_close, 
                                            int *open_count, char **path);
        NTSTATUS (*odb_can_open)(struct odb_lock *lck,
                                 uint32_t share_access, uint32_t create_options, 
index 12a4b3a4dfd05be66f9411f2608bca0fa44b04a7..9ac6f85321515acc38f80e324eabc27000bd36dc 100644 (file)
@@ -91,11 +91,11 @@ struct ntvfs_ops {
        NTSTATUS (*search_first)(struct ntvfs_module_context *ntvfs,
                                 struct ntvfs_request *req,
                                 union smb_search_first *io, void *private,
-                                BOOL (*callback)(void *private, const union smb_search_data *file));
+                                bool (*callback)(void *private, const union smb_search_data *file));
        NTSTATUS (*search_next)(struct ntvfs_module_context *ntvfs,
                                struct ntvfs_request *req,
                                union smb_search_next *io, void *private,
-                               BOOL (*callback)(void *private, const union smb_search_data *file));
+                               bool (*callback)(void *private, const union smb_search_data *file));
        NTSTATUS (*search_close)(struct ntvfs_module_context *ntvfs,
                                 struct ntvfs_request *req,
                                 union smb_search_close *io);
index b08110915b7dc50cad030ff1d076fae34270b382..dcf082fd883cf98c342ef7169131acf930053601 100644 (file)
@@ -118,9 +118,9 @@ struct pvfs_filename {
        char *full_name;
        const char *stream_name; /* does not include :$DATA suffix */
        uint32_t stream_id;      /* this uses a hash, so is probabilistic */
-       BOOL has_wildcard;
-       BOOL exists;          /* true if the base filename exists */
-       BOOL stream_exists;   /* true if the stream exists */
+       bool has_wildcard;
+       bool exists;          /* true if the base filename exists */
+       bool stream_exists;   /* true if the stream exists */
        struct stat st;
        struct pvfs_dos_fileinfo dos;
 };
@@ -150,16 +150,16 @@ struct pvfs_file_handle {
        uint64_t seek_offset;
        uint64_t position;
 
-       BOOL have_opendb_entry;
+       bool have_opendb_entry;
 
        /* we need this hook back to our parent for lock destruction */
        struct pvfs_state *pvfs;
 
        /* have we set a sticky write time that we should remove on close */
-       BOOL sticky_write_time;
+       bool sticky_write_time;
 
        /* the open went through to completion */
-       BOOL open_completed;
+       bool open_completed;
 };
 
 /* open file state */
index fa9b78f6a603bd9ef6943f859dff33c498a8c5df..93649af0c85d43c086a8455de67864c94ebc4bad 100644 (file)
@@ -46,7 +46,7 @@ struct parm_struct {
        parm_type type;
        parm_class class;
        void *ptr;
-       BOOL (*special)(const char *, char **);
+       bool (*special)(const char *, char **);
        const struct enum_list *enum_list;
        unsigned int flags;
        union {
index cbbf8dc04474ccda910eb23727bee8e723473ac3..4e16f03715757b84b3dfeba9ff08c8d0e92f25d0 100644 (file)
@@ -52,7 +52,7 @@ struct share_ops {
        NTSTATUS (*init)(TALLOC_CTX *, const struct share_ops*, struct share_context **);
        const char *(*string_option)(struct share_config *, const char *, const char *);
        int (*int_option)(struct share_config *, const char *, int);
-       BOOL (*bool_option)(struct share_config *, const char *, BOOL);
+       bool (*bool_option)(struct share_config *, const char *, bool);
        const char **(*string_list_option)(TALLOC_CTX *, struct share_config *, const char *);
        NTSTATUS (*list_all)(TALLOC_CTX *, struct share_context *, int *, const char ***);
        NTSTATUS (*get_config)(TALLOC_CTX *, struct share_context *, const char *, struct share_config **);
index f7b785abab3f1f06e35568baf460ba0f1da037d7..219bb51e023bbd809d54ec39c94ac088271c38cb 100644 (file)
@@ -208,7 +208,7 @@ struct dcesrv_connection {
        /* the transport level session key */
        DATA_BLOB transport_session_key;
 
-       BOOL processing;
+       bool processing;
 
        /* this is the default state_flags for dcesrv_call_state structs */
        uint32_t state_flags;
@@ -235,13 +235,13 @@ struct dcesrv_endpoint_server {
         * ask for a dcesrv_interface implementation
         * - iface must be reference to an already existing struct !
         */
-       BOOL (*interface_by_uuid)(struct dcesrv_interface *iface, const struct GUID *, uint32_t);
+       bool (*interface_by_uuid)(struct dcesrv_interface *iface, const struct GUID *, uint32_t);
 
        /* this function can be used by other endpoint servers to
         * ask for a dcesrv_interface implementation
         * - iface must be reference to an already existeng struct !
         */
-       BOOL (*interface_by_name)(struct dcesrv_interface *iface, const char *);
+       bool (*interface_by_name)(struct dcesrv_interface *iface, const char *);
 };
 
 
index 827304b6505f756ae7519f96d99c9689d3602da6..51888c704f589ac3010d1e4220a132e1a65253e0 100755 (executable)
@@ -128,7 +128,7 @@ sub handle_loadparm($$)
                my $name = $3;
 
                my %tmap = (
-                           "BOOL" => "BOOL ",
+                           "BOOL" => "bool ",
                                "bool" => "bool ",
                            "CONST_STRING" => "const char *",
                            "STRING" => "const char *",
@@ -205,6 +205,7 @@ sub process_file($$$)
 
                $target->("\n$comment") if (defined($comment)); $comment = undef;
 
+               $line =~ s/BOOL /bool /g;
                if ( $line =~ /\(.*\)\s*$/o ) {
                        chomp $line;
                        $target->("$line;\n");
@@ -214,6 +215,7 @@ sub process_file($$$)
                $target->($line);
 
                while ($line = <FH>) {
+                       $line =~ s/BOOL /bool /g;
                        if ($line =~ /\)\s*$/o) {
                                chomp $line;
                                $target->("$line;\n");
index 3bfb666dec09aeb1e47c99519d1ea1389f777127..ef920b816aca6e46b70a3ed996b5291c8e853c73 100644 (file)
@@ -104,7 +104,7 @@ NTSTATUS ejs_pull_dom_sid(struct ejs_rpc *ejs,
 NTSTATUS ejs_push_dom_sid(struct ejs_rpc *ejs, 
                          struct MprVar *v, const char *name, const struct dom_sid *r);
 NTSTATUS ejs_push_null(struct ejs_rpc *ejs, struct MprVar *v, const char *name);
-BOOL ejs_pull_null(struct ejs_rpc *ejs, struct MprVar *v, const char *name);
+bool ejs_pull_null(struct ejs_rpc *ejs, struct MprVar *v, const char *name);
 NTSTATUS ejs_push_WERROR(struct ejs_rpc *ejs, 
                         struct MprVar *v, const char *name, const WERROR *r);
 NTSTATUS ejs_push_NTSTATUS(struct ejs_rpc *ejs, 
@@ -114,9 +114,9 @@ NTSTATUS ejs_pull_DATA_BLOB(struct ejs_rpc *ejs,
 NTSTATUS ejs_push_DATA_BLOB(struct ejs_rpc *ejs, 
                            struct MprVar *v, const char *name, const DATA_BLOB *r);
 NTSTATUS ejs_pull_BOOL(struct ejs_rpc *ejs, 
-                      struct MprVar *v, const char *name, BOOL *r);
+                      struct MprVar *v, const char *name, bool *r);
 NTSTATUS ejs_push_BOOL(struct ejs_rpc *ejs, 
-                      struct MprVar *v, const char *name, const BOOL *r);
+                      struct MprVar *v, const char *name, const bool *r);
 
 NTSTATUS ejs_pull_array_uint8(struct ejs_rpc *ejs, 
                              struct MprVar *v, const char *name, 
index 0852404ac0e02bcbe0ecc9f7d1bbedd2273bb935..10bafcd2086f2b734ec364993c9584a5d9f4867b 100644 (file)
@@ -267,14 +267,14 @@ struct smbsrv_connection {
        /* context that has been negotiated between the client and server */
        struct {
                /* have we already done the NBT session establishment? */
-               BOOL done_nbt_session;
+               bool done_nbt_session;
        
                /* only one negprot per connection is allowed */
-               BOOL done_negprot;
+               bool done_negprot;
        
                /* multiple session setups are allowed, but some parameters are
                   ignored in any but the first */
-               BOOL done_sesssetup;
+               bool done_sesssetup;
                
                /* 
                 * Size of data we can send to client. Set
@@ -299,7 +299,7 @@ struct smbsrv_connection {
                struct cli_credentials *server_credentials;
        
                /* did we tell the client we support encrypted passwords? */
-               BOOL encrypted_passwords;
+               bool encrypted_passwords;
        
                /* Did we choose SPNEGO, or perhaps raw NTLMSSP, or even no extended security at all? */
                const char *oid;
@@ -362,7 +362,7 @@ struct smbsrv_connection {
        /* configuration parameters */
        struct {
                enum security_types security;
-               BOOL nt_status_support;
+               bool nt_status_support;
        } config;
 
        /* some statictics for the management tools */
index a027adf6cc527a74dcfc6c330dd9d04d89b23044..49869d8eed35d31a8203b42f0b32ec345596dbed 100644 (file)
@@ -47,7 +47,7 @@ struct stream_connection {
        struct socket_context *socket;
        struct messaging_context *msg_ctx;
 
-       BOOL processing;
+       bool processing;
        const char *terminate;
 };
 
index c43a887caf0bd9664244b6603695e7593dbeb7b8..52aff05dcc559395fef94be5ccbfc50319cdbcd3 100644 (file)
@@ -26,14 +26,14 @@ struct websrv_context {
        struct task_server *task;
        struct stream_connection *conn;
        struct {
-               BOOL tls_detect;
-               BOOL tls_first_char;
+               bool tls_detect;
+               bool tls_first_char;
                uint8_t first_byte;
                DATA_BLOB partial;
-               BOOL end_of_headers;
+               bool end_of_headers;
                char *url;
                unsigned content_length;
-               BOOL post_request;
+               bool post_request;
                const char *content_type;
                const char *query_string;
                const char *user_agent;
@@ -46,7 +46,7 @@ struct websrv_context {
                const char *session_key;
        } input;
        struct {
-               BOOL output_pending;
+               bool output_pending;
                DATA_BLOB content;
                int fd;
                unsigned nsent;
index 359dcb82e2afe4710851c90ba105a206026b8153..7e9ee2feaeb44b4ea0a0d6ae74df3a6ea263cec9 100644 (file)
@@ -79,7 +79,7 @@ struct wbsrv_domain {
 struct wbsrv_listen_socket {
        const char *socket_path;
        struct wbsrv_service *service;
-       BOOL privileged;
+       bool privileged;
 };
 
 /*
index ac59cbd1d70e552a3d2704a9ff2329c767f679c7..92bbe561af44eaab72f983b02c7053f3c5b0c8db 100644 (file)
@@ -31,7 +31,7 @@ struct wreplsrv_pull_cycle_io {
 struct wreplsrv_push_notify_io {
        struct {
                struct wreplsrv_partner *partner;
-               BOOL inform;
-               BOOL propagate;
+               bool inform;
+               bool propagate;
        } in;
 };
index 11af537f026d25c36c0446bee1aa311e11d75501..a001c6b3ae5258f964c026a367fdc4a66d30f2a5 100644 (file)
@@ -34,7 +34,7 @@ struct wreplsrv_in_call {
        struct wreplsrv_in_connection *wreplconn;
        struct wrepl_packet req_packet;
        struct wrepl_packet rep_packet;
-       BOOL terminate_after_send;
+       bool terminate_after_send;
 };
 
 /*
@@ -57,7 +57,7 @@ struct wreplsrv_in_connection {
 
        /* keep track of the assoc_ctx's */
        struct {
-               BOOL stopped;
+               bool stopped;
                uint32_t our_ctx;
                uint32_t peer_ctx;
        } assoc_ctx;
@@ -166,7 +166,7 @@ struct wreplsrv_partner {
                uint64_t maxVersionID;
 
                /* we should use WREPL_REPL_INFORM* messages to this partner */
-               BOOL use_inform;
+               bool use_inform;
 
                /* the error count till the last success */
                uint32_t error_count;
@@ -303,7 +303,7 @@ struct wreplsrv_service {
                /*
                 * are we currently inside a scavenging run
                 */
-               BOOL processing;        
+               bool processing;        
        } scavenging;
 };