aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-16 23:55:15 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-10-16 23:55:15 +0200
commit710f8e0b2df60213572bc71e7ad6b34f534b415f (patch)
tree871674fb63b4073c0b920a8ef559576f8a62a6e9
parent4938ee43bdcb7833e85f2cf942fa9e5d89d239ff (diff)
downloadjson-rpc-shell-710f8e0b2df60213572bc71e7ad6b34f534b415f.tar.gz
json-rpc-shell-710f8e0b2df60213572bc71e7ad6b34f534b415f.tar.xz
json-rpc-shell-710f8e0b2df60213572bc71e7ad6b34f534b415f.zip
json-rpc-test-server: fix function names
Very obviously copied and pasted from the shell.
-rw-r--r--json-rpc-test-server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/json-rpc-test-server.c b/json-rpc-test-server.c
index 837754a..cdf7790 100644
--- a/json-rpc-test-server.c
+++ b/json-rpc-test-server.c
@@ -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)