summaryrefslogtreecommitdiff
path: root/contrib/sepgsql/uavc.c
diff options
context:
space:
mode:
authorAndres Freund2016-03-27 15:17:00 +0000
committerAndres Freund2016-03-27 16:10:19 +0000
commit1a7a43672bf2939dda93a27d498349e7a4aa3c14 (patch)
tree7c2b58901af052b421fa1114d4c899c4b870163c /contrib/sepgsql/uavc.c
parentaf4472bcb88ab36b9abbe7fd5858e570a65a2d1a (diff)
Don't use !! but != 0/NULL to force boolean evaluation.
I introduced several uses of !! to force bit arithmetic to be boolean, but per discussion the project prefers != 0/NULL. Discussion: CA+TgmoZP5KakLGP6B4vUjgMBUW0woq_dJYi0paOz-My0Hwt_vQ@mail.gmail.com
Diffstat (limited to 'contrib/sepgsql/uavc.c')
-rw-r--r--contrib/sepgsql/uavc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/sepgsql/uavc.c b/contrib/sepgsql/uavc.c
index 057245ff038..10fa9a0b0bc 100644
--- a/contrib/sepgsql/uavc.c
+++ b/contrib/sepgsql/uavc.c
@@ -407,7 +407,7 @@ sepgsql_avc_check_perms_label(const char *tcontext,
audit_name != SEPGSQL_AVC_NOAUDIT &&
sepgsql_get_mode() != SEPGSQL_MODE_INTERNAL)
{
- sepgsql_audit_log(!!denied,
+ sepgsql_audit_log(denied != 0,
cache->scontext,
cache->tcontext_is_valid ?
cache->tcontext : sepgsql_avc_unlabeled(),