aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/encoding.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-02-27 00:49:16 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-03-02 16:42:29 +0100
commit302d0c0fe48dd0a8d1910afc5c941d607430c72b (patch)
treecb4c49c7cb28e43fa634abc7c28dadcbec79825d /src/tools/encoding.c
parentmessages: MESSAGE_TOTAL is unused (diff)
downloadwireguard-monolithic-historical-302d0c0fe48dd0a8d1910afc5c941d607430c72b.tar.xz
wireguard-monolithic-historical-302d0c0fe48dd0a8d1910afc5c941d607430c72b.zip
global: in gnu code, use un-underscored asm
Diffstat (limited to 'src/tools/encoding.c')
-rw-r--r--src/tools/encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/encoding.c b/src/tools/encoding.c
index a8bfd24..cb1b123 100644
--- a/src/tools/encoding.c
+++ b/src/tools/encoding.c
@@ -113,7 +113,7 @@ bool key_is_zero(const uint8_t key[static WG_KEY_LEN])
for (unsigned int i = 0; i < WG_KEY_LEN; ++i) {
acc |= key[i];
- __asm__ ("" : "=r" (acc) : "0" (acc));
+ asm("" : "=r" (acc) : "0" (acc));
}
return 1 & ((acc - 1) >> 8);
}