summaryrefslogtreecommitdiffhomepage
path: root/src/uapi
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-03 06:18:45 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-03 06:20:48 +0200
commit452dc76c606d47dc248f846f1202d708a7245f5e (patch)
treeeb5fa1399b2a75f1681cdf0d5555e5babfe0088b /src/uapi
parent9a93bd7a398acd6f693f6a8332fc0dc6e410a2e5 (diff)
global: satisfy bitshift pedantry
Suggested-by: Sultan Alsawaf <sultanxda@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/uapi')
-rw-r--r--src/uapi/wireguard.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uapi/wireguard.h b/src/uapi/wireguard.h
index 9c260be..5274c44 100644
--- a/src/uapi/wireguard.h
+++ b/src/uapi/wireguard.h
@@ -152,7 +152,7 @@ enum wg_cmd {
#define WG_CMD_MAX (__WG_CMD_MAX - 1)
enum wgdevice_flag {
- WGDEVICE_F_REPLACE_PEERS = (1 << 0)
+ WGDEVICE_F_REPLACE_PEERS = 1U << 0
};
enum wgdevice_attribute {
WGDEVICE_A_UNSPEC,
@@ -169,8 +169,8 @@ enum wgdevice_attribute {
#define WGDEVICE_A_MAX (__WGDEVICE_A_LAST - 1)
enum wgpeer_flag {
- WGPEER_F_REMOVE_ME = (1 << 0),
- WGPEER_F_REPLACE_ALLOWEDIPS = (1 << 1)
+ WGPEER_F_REMOVE_ME = 1U << 0,
+ WGPEER_F_REPLACE_ALLOWEDIPS = 1U << 1
};
enum wgpeer_attribute {
WGPEER_A_UNSPEC,