aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/tools/curve25519.c2
-rw-r--r--src/tools/encoding.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/curve25519.c b/src/tools/curve25519.c
index 648daed..c116e21 100644
--- a/src/tools/curve25519.c
+++ b/src/tools/curve25519.c
@@ -72,7 +72,7 @@ static inline void put_unaligned_le64(u64 s, u8 *d)
static noinline void memzero_explicit(void *s, size_t count)
{
memset(s, 0, count);
- asm volatile("": :"r"(s) :"memory");
+ asm volatile("": :"r"(s) : "memory");
}
#ifdef __SIZEOF_INT128__
diff --git a/src/tools/encoding.c b/src/tools/encoding.c
index efe004f..bf5fd54 100644
--- a/src/tools/encoding.c
+++ b/src/tools/encoding.c
@@ -119,7 +119,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 volatile("" : "=r"(acc) : "0"(acc));
}
return 1 & ((acc - 1) >> 8);
}