diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/defs.h | 4 | ||||
| -rw-r--r-- | src/platform/posix/posix_resolv_gai.c | 6 |
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 (;;) { |
