summaryrefslogtreecommitdiffstats
path: root/src/protocols
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-06 01:33:26 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-06 01:33:26 +0200
commit58b8518100c8b306d5b6a3d87b4a83a1ae383a09 (patch)
tree698accb30882c4e9bfb39bf0568a4dee691b7f0a /src/protocols
parent1e540bed623cb6080f1aa2b6afd39600ed25a8dd (diff)
downloadfastd-58b8518100c8b306d5b6a3d87b4a83a1ae383a09.tar
fastd-58b8518100c8b306d5b6a3d87b4a83a1ae383a09.zip
Move UNUSED attribute to the start of arguments to help editors understand the syntax
Diffstat (limited to 'src/protocols')
-rw-r--r--src/protocols/ec25519_fhmqvc/handshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/ec25519_fhmqvc/handshake.c b/src/protocols/ec25519_fhmqvc/handshake.c
index d7b7bfc..54c9f02 100644
--- a/src/protocols/ec25519_fhmqvc/handshake.c
+++ b/src/protocols/ec25519_fhmqvc/handshake.c
@@ -606,7 +606,7 @@ void fastd_protocol_ec25519_fhmqvc_handle_verify_return(fastd_peer_t *peer, fast
#else
/** Dummy add dynamic function for fastd versions without on-verify support */
-static inline fastd_peer_t * add_dynamic(fastd_socket_t *sock UNUSED, const fastd_peer_address_t *addr, const unsigned char key[PUBLICKEYBYTES] UNUSED) {
+static inline fastd_peer_t * add_dynamic(UNUSED fastd_socket_t *sock, const fastd_peer_address_t *addr, UNUSED const unsigned char key[PUBLICKEYBYTES]) {
pr_debug("ignoring handshake from %I (unknown key)", addr);
return NULL;
}