From 452dc76c606d47dc248f846f1202d708a7245f5e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 3 Oct 2017 06:18:45 +0200 Subject: global: satisfy bitshift pedantry Suggested-by: Sultan Alsawaf Signed-off-by: Jason A. Donenfeld --- src/uapi/wireguard.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/uapi') 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, -- cgit v1.2.3