diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-03 06:18:45 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-03 06:20:48 +0200 |
commit | 9eaec6d8f5cba1a95c7072c95d0a13726352aaea (patch) | |
tree | 12d7f4829c92bd535543698308466285b4bd8942 /src/uapi | |
parent | receive: simplify message type validation (diff) | |
download | wireguard-monolithic-historical-9eaec6d8f5cba1a95c7072c95d0a13726352aaea.tar.xz wireguard-monolithic-historical-9eaec6d8f5cba1a95c7072c95d0a13726352aaea.zip |
global: satisfy bitshift pedantry
Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
Diffstat (limited to 'src/uapi')
-rw-r--r-- | src/uapi/wireguard.h | 6 |
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, |