From e87a0b5881f1a5214d22c415a4ffa3144d681312 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 15 Aug 2022 18:50:41 +0100 Subject: [PATCH] prefork-interp: Rename read_greeting (from protocol_greeting) This is clearer. Signed-off-by: Ian Jackson --- cprogs/prefork-interp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cprogs/prefork-interp.c b/cprogs/prefork-interp.c index 9b773a4..c62f00a 100644 --- a/cprogs/prefork-interp.c +++ b/cprogs/prefork-interp.c @@ -299,7 +299,7 @@ static void protocol_read(void *data, size_t sz) { } // Returns 0 if OK, error msg if peer was garbage. -static const char *protocol_greeting(void) { +static const char *read_greeting(void) { char got_magic[sizeof(header_magic)]; if (protocol_read_maybe(&got_magic, sizeof(got_magic)) < 0) @@ -336,7 +336,7 @@ static FILE *connect_existing(void) { call_sock = call_sock_from_fd(fd); fd = -1; - if (protocol_greeting()) + if (read_greeting()) goto x_garbage; return call_sock; @@ -418,7 +418,7 @@ static void connect_or_spawn(void) { (long)setup_pid, (long)got); if (status != 0) propagate_exit_status(status, "setup"); - const char *emsg = protocol_greeting(); + const char *emsg = read_greeting(); if (emsg) die("setup failed: %s", emsg); close(lockfd); -- 2.30.2