From 710f8e0b2df60213572bc71e7ad6b34f534b415f Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Fri, 16 Oct 2020 23:55:15 +0200 Subject: json-rpc-test-server: fix function names Very obviously copied and pasted from the shell. --- json-rpc-test-server.c | 8 ++++---- 1 file 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) -- cgit v1.2.3-70-g09d2