diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-11 14:25:28 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-11 14:25:28 +0100 |
commit | 915507020046c9488f277d523c22bb12995e14ea (patch) | |
tree | 0bcde034f2f71ef6091a3cdb3793c09d43ce0f89 /src/hashtables.h | |
parent | receive: simplify ip header checking logic (diff) | |
download | wireguard-monolithic-historical-915507020046c9488f277d523c22bb12995e14ea.tar.xz wireguard-monolithic-historical-915507020046c9488f277d523c22bb12995e14ea.zip |
global: move to consistent use of uN instead of uintN_t for kernel code
Diffstat (limited to 'src/hashtables.h')
-rw-r--r-- | src/hashtables.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hashtables.h b/src/hashtables.h index 5a87a72..fd3ff8b 100644 --- a/src/hashtables.h +++ b/src/hashtables.h @@ -13,18 +13,18 @@ struct wireguard_peer; struct pubkey_hashtable { DECLARE_HASHTABLE(hashtable, 8); - uint8_t key[SIPHASH24_KEY_LEN]; + u8 key[SIPHASH24_KEY_LEN]; struct mutex lock; }; void pubkey_hashtable_init(struct pubkey_hashtable *table); void pubkey_hashtable_add(struct pubkey_hashtable *table, struct wireguard_peer *peer); void pubkey_hashtable_remove(struct pubkey_hashtable *table, struct wireguard_peer *peer); -struct wireguard_peer *pubkey_hashtable_lookup(struct pubkey_hashtable *table, const uint8_t pubkey[NOISE_PUBLIC_KEY_LEN]); +struct wireguard_peer *pubkey_hashtable_lookup(struct pubkey_hashtable *table, const u8 pubkey[NOISE_PUBLIC_KEY_LEN]); struct index_hashtable { DECLARE_HASHTABLE(hashtable, 10); - uint8_t key[SIPHASH24_KEY_LEN]; + u8 key[SIPHASH24_KEY_LEN]; spinlock_t lock; }; |