diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-08-27 17:21:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:53 -0500 |
commit | 4fb038b0b8e7a4bb69ac0d9022684eeaca8a491a (patch) | |
tree | b2465bb451c73232e640d2c2718a6af084be2345 /source4/lib/util/module.c | |
parent | 8a1d019f53ef6d1a6900a005b335bdc10d14bbe4 (diff) | |
download | samba-4fb038b0b8e7a4bb69ac0d9022684eeaca8a491a.tar.gz samba-4fb038b0b8e7a4bb69ac0d9022684eeaca8a491a.tar.bz2 samba-4fb038b0b8e7a4bb69ac0d9022684eeaca8a491a.zip |
r24710: Use standard boolean type for easier use by external users.
(This used to be commit 99f4124137d4a61216e8189f26d4da32882c0f4a)
Diffstat (limited to 'source4/lib/util/module.c')
-rw-r--r-- | source4/lib/util/module.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/util/module.c b/source4/lib/util/module.c index 096b21b8a9..170ea0bacb 100644 --- a/source4/lib/util/module.c +++ b/source4/lib/util/module.c @@ -95,17 +95,17 @@ _PUBLIC_ init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path) /** * Run the specified init functions. * - * @return True if all functions ran successfully, False otherwise + * @return true if all functions ran successfully, false otherwise */ -_PUBLIC_ BOOL run_init_functions(NTSTATUS (**fns) (void)) +_PUBLIC_ bool run_init_functions(NTSTATUS (**fns) (void)) { int i; - BOOL ret = True; + bool ret = true; if (fns == NULL) - return True; + return true; - for (i = 0; fns[i]; i++) { ret &= (BOOL)NT_STATUS_IS_OK(fns[i]()); } + for (i = 0; fns[i]; i++) { ret &= (bool)NT_STATUS_IS_OK(fns[i]()); } return ret; } |