musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/syslog.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014年02月11日 18:02:06 +0100
committerSzabolcs Nagy <nsz@port70.net>2014年02月11日 18:02:06 +0100
commite74f3b0234de9a8e0596166bdfa04af3f031249c (patch)
treeaaf2217f856cf805e954adb66d70d86503ac11f6 /include/syslog.h
parentaa6ce3d4e31e6e138a8fa5911d801ebc5ab47473 (diff)
downloadmusl-e74f3b0234de9a8e0596166bdfa04af3f031249c.tar.gz
add parens when bit and arith ops are mixed in macros in public headers
another commit to silence gcc warnings (-Wparentheses) for standard headers. changed macros: LOG_UPTO, IN6_ARE_ADDR_EQUAL
Diffstat (limited to 'include/syslog.h')
-rw-r--r--include/syslog.h 2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/syslog.h b/include/syslog.h
index f7f545f7..71dbd99b 100644
--- a/include/syslog.h
+++ b/include/syslog.h
@@ -21,7 +21,7 @@ extern "C" {
#define LOG_MAKEPRI(f, p) (((f)<<3)|(p))
#define LOG_MASK(p) (1<<(p))
-#define LOG_UPTO(p) ((1<<(p)+1)-1)
+#define LOG_UPTO(p) ((1<<((p)+1))-1)
#define LOG_KERN (0<<3)
#define LOG_USER (1<<3)
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月03日 00:40:13 +0000

AltStyle によって変換されたページ (->オリジナル) /