summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-01-23 23:50:27 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2017-01-23 23:50:27 +0100
commit9e5725662f944fe437be7ba1b54acbc5fc18dbe1 (patch)
treee5daa605b91dce014582f35fe0330287c1867775 /common.c
parent0785a6f417d3a6e43d2d72132e550d517af41bc4 (diff)
downloadxK-9e5725662f944fe437be7ba1b54acbc5fc18dbe1.tar.gz
xK-9e5725662f944fe437be7ba1b54acbc5fc18dbe1.tar.xz
xK-9e5725662f944fe437be7ba1b54acbc5fc18dbe1.zip
Bump liberty
Diffstat (limited to 'common.c')
-rw-r--r--common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.c b/common.c
index 1d6c1f7..6c5755f 100644
--- a/common.c
+++ b/common.c
@@ -52,7 +52,7 @@ init_openssl (void)
// --- To be moved to liberty --------------------------------------------------
static ssize_t
-str_vector_find (const struct str_vector *v, const char *s)
+strv_find (const struct strv *v, const char *s)
{
for (size_t i = 0; i < v->len; i++)
if (!strcmp (v->vector[i], s))
@@ -702,7 +702,7 @@ socks_try_fill_read_buffer (struct socks_connector *self, size_t n)
return true;
ssize_t received;
- str_ensure_space (&self->read_buffer, remains);
+ str_reserve (&self->read_buffer, remains);
do
received = recv (self->socket_fd,
self->read_buffer.str + self->read_buffer.len, remains, 0);