summaryrefslogtreecommitdiff
path: root/src/arch-x86.c
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2013-04-19 15:29:50 -0400
committerPaul Moore <pmoore@redhat.com>2013-04-19 15:29:50 -0400
commitb29fcac12735967f594223389cd06e41d3d07b48 (patch)
treeb0902bc1a157d1265ba06fd3501428209c4b82ba /src/arch-x86.c
parent3bcbcd0389f6e7ee7fba0a3fee4c30e21c3625f0 (diff)
downloadlibseccomp-b29fcac12735967f594223389cd06e41d3d07b48.tar.gz
all: convert some booleans from ints to bools
Make it more obvious that these variables are booleans. Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'src/arch-x86.c')
-rw-r--r--src/arch-x86.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/arch-x86.c b/src/arch-x86.c
index 42c0bb1..66e72dc 100644
--- a/src/arch-x86.c
+++ b/src/arch-x86.c
@@ -51,8 +51,7 @@ const struct arch_def arch_def_x86 = {
* failure.
*
*/
-int x86_syscall_rewrite(const struct arch_def *arch, unsigned int strict,
- int *syscall)
+int x86_syscall_rewrite(const struct arch_def *arch, bool strict, int *syscall)
{
if ((*syscall) <= -100 && (*syscall) >= -117)
*syscall = __x86_NR_socketcall;
@@ -79,7 +78,7 @@ int x86_syscall_rewrite(const struct arch_def *arch, unsigned int strict,
* fail. Returns zero on success, negative values on failure.
*
*/
-int x86_filter_rewrite(const struct arch_def *arch, unsigned int strict,
+int x86_filter_rewrite(const struct arch_def *arch, bool strict,
int *syscall, struct db_api_arg *chain)
{
unsigned int iter;