aboutsummaryrefslogtreecommitdiffstats
path: root/sync_pipe_write.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2020-06-07 14:52:53 -0700
committerAnders Broman <a.broman58@gmail.com>2020-06-08 05:08:35 +0000
commit93bf3fd3ae4be306640e7d8d8780349976273010 (patch)
tree06788e7dfdd908def2b67ff35a5afb9816f69db4 /sync_pipe_write.c
parent095d8973812079c969584f5f9420bcaffd84afe3 (diff)
sync_pipe_write: Fixup a comment.
Use more accurate terminology. Change-Id: Ie753010640ee831650e408d0989971741e43ba70 Reviewed-on: https://code.wireshark.org/review/37399 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'sync_pipe_write.c')
-rw-r--r--sync_pipe_write.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sync_pipe_write.c b/sync_pipe_write.c
index c0c62a4db5..8c9f136111 100644
--- a/sync_pipe_write.c
+++ b/sync_pipe_write.c
@@ -84,8 +84,7 @@ void
sync_pipe_errmsg_to_parent(int pipe_fd, const char *error_msg,
const char *secondary_error_msg)
{
-
- /* first write a "master header" with the length of the two messages plus their "slave headers" */
+ /* Write a message header containing the length of the two messages followed by the primary and secondary error messagess */
pipe_write_header(pipe_fd, SP_ERROR_MSG, (int) (strlen(error_msg) + 1 + 4 + strlen(secondary_error_msg) + 1 + 4));
pipe_write_block(pipe_fd, SP_ERROR_MSG, error_msg);
pipe_write_block(pipe_fd, SP_ERROR_MSG, secondary_error_msg);