}
// 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)
call_sock = call_sock_from_fd(fd);
fd = -1;
- if (protocol_greeting())
+ if (read_greeting())
goto x_garbage;
return call_sock;
(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);