diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-01-21 01:32:20 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-01-21 01:32:20 +0000 |
commit | e24cc25a2db463a9ebba01b963743d92a3f1822e (patch) | |
tree | e8364d8576d2371a34afcffa578278df2a859f37 /sys | |
parent | 15dda777936c48d0b0607b01b09ddd379d179496 (diff) |
Make the if_flags member unsigned. This was prompted by clang
complaining that assigning the MULTICAST flag, which sets the
uppermost bit, would invert the meaning of MULTICAST flag's
numeric value.
ok claudio@ deraadt@ tom@ visa@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_var.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h index 702fc5539c1..3059acef552 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_var.h,v 1.78 2017/01/06 14:01:19 rzalamena Exp $ */ +/* $OpenBSD: if_var.h,v 1.79 2017/01/21 01:32:19 patrick Exp $ */ /* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */ /* @@ -126,7 +126,7 @@ struct ifnet { /* and the entries */ #define if_carpdev if_carp_ptr.carp_d unsigned int if_index; /* numeric abbreviation for this if */ short if_timer; /* time 'til if_watchdog called */ - short if_flags; /* up/down, broadcast, etc. */ + unsigned short if_flags; /* up/down, broadcast, etc. */ int if_xflags; /* extra softnet flags */ struct if_data if_data; /* stats and other data about if */ u_int32_t if_hardmtu; /* maximum MTU device supports */ |