From ec7de57627a2bba8fadfb34d118ac478fbc351aa Mon Sep 17 00:00:00 2001 From: Robert Bielik Date: Wed, 1 Jan 2020 18:37:37 +0100 Subject: Add error message for NNG_ECONNSHUT (#1084) * Add error message for NNG_ECONNSHUT * Added missing space after string. --- src/nng.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/nng.c') diff --git a/src/nng.c b/src/nng.c index 07adc64e..e601f785 100644 --- a/src/nng.c +++ b/src/nng.c @@ -626,7 +626,8 @@ nng_setopt(nng_socket s, const char *name, const void *val, size_t sz) } static int -nni_socket_getx(nng_socket s, const char *name, void *val, size_t *szp, nni_type t) +nni_socket_getx( + nng_socket s, const char *name, void *val, size_t *szp, nni_type t) { nni_sock *sock; int rv; @@ -816,6 +817,7 @@ static const struct { { NNG_ENOARG, "Option requires argument" }, { NNG_EAMBIGUOUS, "Ambiguous option" }, { NNG_EBADTYPE, "Incorrect type" }, + { NNG_ECONNSHUT, "Connection shutdown" }, { NNG_EINTERNAL, "Internal error detected" }, { 0, NULL }, // clang-format on -- cgit v1.2.3-70-g09d2