summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-11-12 16:37:18 +0100
committerTom Gundersen <teg@jklm.no>2015-11-12 16:37:18 +0100
commit133dd71fdd25152905d427e0812c05534f83f2b7 (patch)
tree7b2b9c6c60a072f61a2605bca5e1c3b9b1a9a397 /src
parente87e7f5651a741cd9bd7d4b1f759573faa555c08 (diff)
sd-ndisc: add missing parens
Reported by Thomas Andersen.
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-network/sd-ndisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-ndisc.c b/src/libsystemd-network/sd-ndisc.c
index f35b3a33b8..0881973e7f 100644
--- a/src/libsystemd-network/sd-ndisc.c
+++ b/src/libsystemd-network/sd-ndisc.c
@@ -519,7 +519,7 @@ static int ndisc_router_advertisment_recv(sd_event_source *s, int fd, uint32_t r
nd->state = NDISC_STATE_ADVERTISMENT_LISTEN;
stateful = ra->nd_ra_flags_reserved & (ND_RA_FLAG_MANAGED | ND_RA_FLAG_OTHER);
- pref = ra->nd_ra_flags_reserved & ND_RA_FLAG_PREF >> 3;
+ pref = (ra->nd_ra_flags_reserved & ND_RA_FLAG_PREF) >> 3;
switch (pref) {
case ND_RA_FLAG_PREF_LOW: