aboutsummaryrefslogtreecommitdiff
path: root/tests/testutil.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-01-18 14:35:36 -0800
committerGarrett D'Amore <garrett@damore.org>2020-01-18 19:50:47 -0800
commit0242199ddc95e8a683304897a3e1bc26c7e74c0f (patch)
tree6b60ee6b9d1d1988c28b42d4af33005a4b8a3ae1 /tests/testutil.h
parent10133ca9b5439e67b287703739e23e7d82fb76c4 (diff)
downloadnng-0242199ddc95e8a683304897a3e1bc26c7e74c0f.tar.gz
nng-0242199ddc95e8a683304897a3e1bc26c7e74c0f.tar.bz2
nng-0242199ddc95e8a683304897a3e1bc26c7e74c0f.zip
fixes #1142 raw mode use of message headers is inconsistent
This correctly moves the entire protocol header for XREQ and XRESPONDENT protocols to the message header (not the body). This is where it should always have been. There is some small chance that applications which were coded to parse the header from the body will break. We don't think there are any such applications in use.
Diffstat (limited to 'tests/testutil.h')
-rw-r--r--tests/testutil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testutil.h b/tests/testutil.h
index f28fed5c..88d978de 100644
--- a/tests/testutil.h
+++ b/tests/testutil.h
@@ -87,7 +87,7 @@ extern int testutil_marry_ex(nng_socket, nng_socket, nng_pipe *, nng_pipe *);
TEST_CHECK_(sz_ == strlen(string) + 1, "length %d want %d", \
sz_, strlen(string) + 1); \
buf_[sizeof(buf_) - 1] = '\0'; \
- TEST_CHECK_( \
+ TEST_CHECK_( \
strcmp(string, buf_) == 0, "%s == %s", string, buf_); \
} while (0)