All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian Göttsche" <cgzones@googlemail.com>
To: selinux@vger.kernel.org
Subject: [PATCH 2/4] libselinux: enclose macro definition in parenthesis
Date: Fri, 20 May 2022 15:08:45 +0200	[thread overview]
Message-ID: <20220520130847.10958-2-cgzones@googlemail.com> (raw)
In-Reply-To: <20220520130847.10958-1-cgzones@googlemail.com>

Avoid potential precedence issues.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 libselinux/include/selinux/avc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libselinux/include/selinux/avc.h b/libselinux/include/selinux/avc.h
index 9b23357a..4bbd2382 100644
--- a/libselinux/include/selinux/avc.h
+++ b/libselinux/include/selinux/avc.h
@@ -24,7 +24,7 @@ struct security_id {
 };
 typedef struct security_id *security_id_t;
 
-#define SECSID_WILD (security_id_t)NULL	/* unspecified SID */
+#define SECSID_WILD ((security_id_t)NULL)	/* unspecified SID */
 
 /**
  * avc_sid_to_context - get copy of context corresponding to SID.
-- 
2.36.1


  reply	other threads:[~2022-05-20 13:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-20 13:08 [PATCH 1/4] libselinux: add man page redirections Christian Göttsche
2022-05-20 13:08 ` Christian Göttsche [this message]
2022-05-20 13:08 ` [PATCH 3/4] libselinux: name parameters in context.h Christian Göttsche
2022-06-07 17:16   ` [PATCH v2 " Christian Göttsche
2022-05-20 13:08 ` [PATCH 4/4] libselinux: declare parameter of security_load_policy(3) const Christian Göttsche
2022-06-08 17:51 ` [PATCH 1/4] libselinux: add man page redirections James Carter
2022-06-15 13:45   ` James Carter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220520130847.10958-2-cgzones@googlemail.com \
    --to=cgzones@googlemail.com \
    --cc=selinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.