summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2019-12-29 11:15:11 -0800
committerGarrett D'Amore <garrett@damore.org>2019-12-29 11:15:11 -0800
commite457590015f8c3f4e840e4bed290f052c001e07c (patch)
tree0f6ea53cd3bc858cd0ccc9e29164addcf116d4b8
parent0f9c13c44ce56294c78f8aeff89beb8c6f799ada (diff)
downloadnng-e457590015f8c3f4e840e4bed290f052c001e07c.tar.gz
nng-e457590015f8c3f4e840e4bed290f052c001e07c.tar.bz2
nng-e457590015f8c3f4e840e4bed290f052c001e07c.zip
Silence a few clang-tidy complaints.
-rw-r--r--src/core/defs.h4
-rw-r--r--src/platform/posix/posix_resolv_gai.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/core/defs.h b/src/core/defs.h
index 32d6782a..9b7abafa 100644
--- a/src/core/defs.h
+++ b/src/core/defs.h
@@ -1,5 +1,5 @@
//
-// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2019 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitoar.com>
//
// This software is supplied under the terms of the MIT License, a
@@ -16,7 +16,7 @@
// C compilers may get unhappy when named arguments are not used. While
// there are things like __attribute__((unused)) which are arguably
// superior, support for such are not universal.
-#define NNI_ARG_UNUSED(x) ((void) x);
+#define NNI_ARG_UNUSED(x) ((void) x)
#ifndef NDEBUG
#define NNI_ASSERT(x) \
diff --git a/src/platform/posix/posix_resolv_gai.c b/src/platform/posix/posix_resolv_gai.c
index 1d7b7e5b..4bf9d2ec 100644
--- a/src/platform/posix/posix_resolv_gai.c
+++ b/src/platform/posix/posix_resolv_gai.c
@@ -22,7 +22,7 @@
// We use a single resolver taskq - but we allocate a few threads
// for it to ensure that names can be looked up concurrently. This isn't
-// as elegant or scaleable as a true asynchronous resolver would be, but
+// as elegant or scalable as a true asynchronous resolver would be, but
// it has the advantage of being fairly portable, and concurrent enough for
// the vast, vast majority of use cases. The total thread count can be
// changed with this define. Note that some platforms may not have a
@@ -296,10 +296,10 @@ nni_udp_resolv(
}
void
-resolv_worker(void *notused)
+resolv_worker(void *unused)
{
- NNI_ARG_UNUSED(notused);
+ NNI_ARG_UNUSED(unused);
nni_mtx_lock(&resolv_mtx);
for (;;) {