diff options
author | Szabolcs Nagy <nsz@port70.net> | 2014-02-11 18:02:06 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2014-02-11 18:02:06 +0100 |
commit | e74f3b0234de9a8e0596166bdfa04af3f031249c (patch) | |
tree | aaf2217f856cf805e954adb66d70d86503ac11f6 /include/syslog.h | |
parent | aa6ce3d4e31e6e138a8fa5911d801ebc5ab47473 (diff) | |
download | musl-e74f3b0234de9a8e0596166bdfa04af3f031249c.tar.gz musl-e74f3b0234de9a8e0596166bdfa04af3f031249c.tar.bz2 musl-e74f3b0234de9a8e0596166bdfa04af3f031249c.tar.xz musl-e74f3b0234de9a8e0596166bdfa04af3f031249c.zip |
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) |