summaryrefslogtreecommitdiff
path: root/source4/lib/util/capability.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-08-27 17:21:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:53 -0500
commit4fb038b0b8e7a4bb69ac0d9022684eeaca8a491a (patch)
treeb2465bb451c73232e640d2c2718a6af084be2345 /source4/lib/util/capability.c
parent8a1d019f53ef6d1a6900a005b335bdc10d14bbe4 (diff)
downloadsamba-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/capability.c')
-rw-r--r--source4/lib/util/capability.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/lib/util/capability.c b/source4/lib/util/capability.c
index d42d13e008..2d13826c14 100644
--- a/source4/lib/util/capability.c
+++ b/source4/lib/util/capability.c
@@ -37,7 +37,7 @@
/**************************************************************************
Try and abstract process capabilities (for systems that have them).
****************************************************************************/
-static BOOL set_process_capability( uint32_t cap_flag, BOOL enable )
+static bool set_process_capability( uint32_t cap_flag, bool enable )
{
if(cap_flag == KERNEL_OPLOCK_CAPABILITY) {
cap_t cap = cap_get_proc();
@@ -45,7 +45,7 @@ static BOOL set_process_capability( uint32_t cap_flag, BOOL enable )
if (cap == NULL) {
DEBUG(0,("set_process_capability: cap_get_proc failed. Error was %s\n",
strerror(errno)));
- return False;
+ return false;
}
if(enable)
@@ -57,21 +57,21 @@ static BOOL set_process_capability( uint32_t cap_flag, BOOL enable )
DEBUG(0,("set_process_capability: cap_set_proc failed. Error was %s\n",
strerror(errno)));
cap_free(cap);
- return False;
+ return false;
}
cap_free(cap);
DEBUG(10,("set_process_capability: Set KERNEL_OPLOCK_CAPABILITY.\n"));
}
- return True;
+ return true;
}
/**************************************************************************
Try and abstract inherited process capabilities (for systems that have them).
****************************************************************************/
-static BOOL set_inherited_process_capability( uint32_t cap_flag, BOOL enable )
+static bool set_inherited_process_capability( uint32_t cap_flag, bool enable )
{
if(cap_flag == KERNEL_OPLOCK_CAPABILITY) {
cap_t cap = cap_get_proc();
@@ -79,7 +79,7 @@ static BOOL set_inherited_process_capability( uint32_t cap_flag, BOOL enable )
if (cap == NULL) {
DEBUG(0,("set_inherited_process_capability: cap_get_proc failed. Error was %s\n",
strerror(errno)));
- return False;
+ return false;
}
if(enable)
@@ -91,13 +91,13 @@ static BOOL set_inherited_process_capability( uint32_t cap_flag, BOOL enable )
DEBUG(0,("set_inherited_process_capability: cap_set_proc failed. Error was %s\n",
strerror(errno)));
cap_free(cap);
- return False;
+ return false;
}
cap_free(cap);
DEBUG(10,("set_inherited_process_capability: Set KERNEL_OPLOCK_CAPABILITY.\n"));
}
- return True;
+ return true;
}
#endif