global: satisfy bitshift pedantry

Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2017-10-03 06:18:45 +02:00
parent 0b795ca5d5
commit a99b64e5a4

View file

@ -24,10 +24,10 @@ struct wgallowedip {
}; };
enum { enum {
WGPEER_REMOVE_ME = (1 << 0), WGPEER_REMOVE_ME = 1U << 0,
WGPEER_REPLACE_ALLOWEDIPS = (1 << 1), WGPEER_REPLACE_ALLOWEDIPS = 1U << 1,
WGPEER_HAS_PRESHARED_KEY = (1 << 2), WGPEER_HAS_PRESHARED_KEY = 1U << 2,
WGPEER_HAS_PERSISTENT_KEEPALIVE_INTERVAL = (1 << 3) WGPEER_HAS_PERSISTENT_KEEPALIVE_INTERVAL = 1U << 3
}; };
struct wgpeer { struct wgpeer {
@ -51,10 +51,10 @@ struct wgpeer {
}; };
enum { enum {
WGDEVICE_REPLACE_PEERS = (1 << 0), WGDEVICE_REPLACE_PEERS = 1U << 0,
WGDEVICE_HAS_PRIVATE_KEY = (1 << 1), WGDEVICE_HAS_PRIVATE_KEY = 1U << 1,
WGDEVICE_HAS_LISTEN_PORT = (1 << 2), WGDEVICE_HAS_LISTEN_PORT = 1U << 2,
WGDEVICE_HAS_FWMARK = (1 << 3) WGDEVICE_HAS_FWMARK = 1U << 3
}; };
enum { enum {