json-rpc-test-server: fix function names

Very obviously copied and pasted from the shell.
This commit is contained in:
Přemysl Eric Janouch 2020-10-16 23:55:15 +02:00
parent 4938ee43bd
commit 710f8e0b2d
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 4 additions and 4 deletions

View File

@ -2641,7 +2641,7 @@ client_co_process (struct co_context *self)
}
static void
backend_co_parse (struct co_context *self, const char *data, size_t len,
client_co_parse (struct co_context *self, const char *data, size_t len,
size_t *n_parsed)
{
if (self->pending_fake_starter)
@ -2666,12 +2666,12 @@ backend_co_parse (struct co_context *self, const char *data, size_t len,
}
static void
backend_co_on_data (struct co_context *self, const char *data, size_t len)
client_co_on_data (struct co_context *self, const char *data, size_t len)
{
size_t n_parsed = 0;
do
{
backend_co_parse (self, data, len, &n_parsed);
client_co_parse (self, data, len, &n_parsed);
data += n_parsed;
}
while ((len -= n_parsed));
@ -2700,7 +2700,7 @@ client_co_run (struct server_context *ctx)
int errno_saved = errno;
if (buf.len)
backend_co_on_data (&self, buf.str, buf.len);
client_co_on_data (&self, buf.str, buf.len);
if (result == SOCKET_IO_ERROR)
exit_fatal ("read: %s", strerror (errno_saved));
if (result == SOCKET_IO_EOF)