From 93adf51c0d4412d027845fd5ef7b3b4a0ae419d2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 16 Jan 2016 18:39:02 +1100 Subject: [PATCH] Rename add_bufline to add_buflen since it's not a line being added --- src/ckpool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ckpool.c b/src/ckpool.c index ee54a7a2..37a38602 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -526,7 +526,7 @@ static void clear_bufline(connsock_t *cs) cs->bufofs = 0; } -static void add_bufline(connsock_t *cs, const char *readbuf, const int len) +static void add_buflen(connsock_t *cs, const char *readbuf, const int len) { int backoff = 1; size_t buflen; @@ -601,7 +601,7 @@ int read_socket_line(connsock_t *cs, float *timeout) ret = -1; goto out; } - add_bufline(cs, readbuf, ret); + add_buflen(cs, readbuf, ret); eom = strchr(cs->buf, '\n'); tv_time(&now); diff = tvdiff(&now, &start);