diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-08-12 11:20:41 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-08-12 11:20:41 -0700 |
| commit | 46c0fb89b06331b44a51cb7e56f0fb2fe3281a4b (patch) | |
| tree | 2a01a9358a635e2bac4bead480b4db07795dffa1 /src/core/message.c | |
| parent | 9b4d9e71a63cafcee0edee734847bba28d9fea35 (diff) | |
| download | nng-46c0fb89b06331b44a51cb7e56f0fb2fe3281a4b.tar.gz nng-46c0fb89b06331b44a51cb7e56f0fb2fe3281a4b.tar.bz2 nng-46c0fb89b06331b44a51cb7e56f0fb2fe3281a4b.zip | |
Don't compile in message dumping by default.
Diffstat (limited to 'src/core/message.c')
| -rw-r--r-- | src/core/message.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/message.c b/src/core/message.c index 10c42a25..b44dfdf6 100644 --- a/src/core/message.c +++ b/src/core/message.c @@ -40,6 +40,7 @@ typedef struct { nni_list_node mo_node; } nni_msgopt; +#if 0 static void nni_chunk_dump(const nni_chunk *chunk, char *prefix) { @@ -87,6 +88,7 @@ nni_msg_dump(const char *banner, const nni_msg *msg) nni_chunk_dump(&msg->m_body, "BODY"); nni_println("--- END ---"); } +#endif // nni_chunk_grow increases the underlying space for a chunk. It ensures // that the desired amount of trailing space (including the length) |
