summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-01-23 23:59:03 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2017-01-23 23:59:03 +0100
commit6ab72197521a35bc4484a8d3caf9882ee38c7de8 (patch)
tree252a56031442ec12a9dc905a1c1ab6ead9a1541b
parenta90173c71a04487d531eeb620180512902f7bc9a (diff)
downloadjson-rpc-shell-6ab72197521a35bc4484a8d3caf9882ee38c7de8.tar.gz
json-rpc-shell-6ab72197521a35bc4484a8d3caf9882ee38c7de8.tar.xz
json-rpc-shell-6ab72197521a35bc4484a8d3caf9882ee38c7de8.zip
Bump liberty
-rw-r--r--json-rpc-shell.c8
m---------liberty0
2 files changed, 4 insertions, 4 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c
index fb95ee7..8b6da1b 100644
--- a/json-rpc-shell.c
+++ b/json-rpc-shell.c
@@ -1280,7 +1280,7 @@ struct ws_context
char *endpoint; ///< Endpoint URL
struct http_parser_url url; ///< Parsed URL
- struct str_vector extra_headers; ///< Extra headers for the handshake
+ struct strv extra_headers; ///< Extra headers for the handshake
// Events:
@@ -1319,7 +1319,7 @@ static void
backend_ws_add_header (struct backend *backend, const char *header)
{
struct ws_context *self = (struct ws_context *) backend;
- str_vector_add (&self->extra_headers, header);
+ strv_append (&self->extra_headers, header);
}
enum ws_read_result
@@ -2193,7 +2193,7 @@ backend_ws_destroy (struct backend *backend)
backend_ws_close_connection (self);
free (self->endpoint);
- str_vector_free (&self->extra_headers);
+ strv_free (&self->extra_headers);
if (self->e)
error_free (self->e);
ev_timer_stop (EV_DEFAULT_ &self->timeout_watcher);
@@ -2236,7 +2236,7 @@ backend_ws_new (struct app_context *ctx,
self->headers.free = free;
ws_parser_init (&self->parser);
str_init (&self->message_data);
- str_vector_init (&self->extra_headers);
+ strv_init (&self->extra_headers);
self->endpoint = xstrdup (endpoint);
self->url = *url;
diff --git a/liberty b/liberty
-Subproject 8b2e41ed8ffac0494763495896c6a80a9e9db54
+Subproject 084e964286bfcd13ee6a25a2ee35dfba9da1072