diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-01-23 23:07:24 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-01-23 23:07:24 +0100 |
commit | 0e08055d6d361d2a902225046e1e463bc8ce50c0 (patch) | |
tree | 6aa1b330cf63e126c4a66588fa901372bd8ee505 /liberty-proto.c | |
parent | 6642bdf9cd779471fbc0a843f3d1450541eb46be (diff) | |
download | liberty-0e08055d6d361d2a902225046e1e463bc8ce50c0.tar.gz liberty-0e08055d6d361d2a902225046e1e463bc8ce50c0.tar.xz liberty-0e08055d6d361d2a902225046e1e463bc8ce50c0.zip |
Rename strv_add*() to strv_append*()
Consistency.
Diffstat (limited to 'liberty-proto.c')
-rw-r--r-- | liberty-proto.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/liberty-proto.c b/liberty-proto.c index ff97d2b..0648b5a 100644 --- a/liberty-proto.c +++ b/liberty-proto.c @@ -132,7 +132,7 @@ irc_parse_message (struct irc_message *msg, const char *line) if (*line == ':') { - strv_add (&msg->params, ++line); + strv_append (&msg->params, ++line); break; } @@ -140,7 +140,7 @@ irc_parse_message (struct irc_message *msg, const char *line) if (!param_len) break; - strv_add_owned (&msg->params, xstrndup (line, param_len)); + strv_append_owned (&msg->params, xstrndup (line, param_len)); line += param_len; } } @@ -1572,7 +1572,7 @@ mpd_client_parse_line (struct mpd_client *self, const char *line) struct mpd_response response; memset (&response, 0, sizeof response); if (!strcmp (line, "list_OK")) - strv_add_owned (&self->data, NULL); + strv_append_owned (&self->data, NULL); else if (mpd_client_parse_response (line, &response)) { mpd_client_dispatch (self, &response); @@ -1580,7 +1580,7 @@ mpd_client_parse_line (struct mpd_client *self, const char *line) free (response.message_text); } else - strv_add (&self->data, line); + strv_append (&self->data, line); return true; } @@ -1741,7 +1741,7 @@ mpd_client_send_command (struct mpd_client *self, const char *command, ...) va_list ap; va_start (ap, command); for (; command; command = va_arg (ap, const char *)) - strv_add (&v, command); + strv_append (&v, command); va_end (ap); mpd_client_send_commandv (self, v.vector); @@ -1839,10 +1839,10 @@ mpd_client_idle (struct mpd_client *self, unsigned subsystems) struct strv v; strv_init (&v); - strv_add (&v, "idle"); + strv_append (&v, "idle"); for (size_t i = 0; i < N_ELEMENTS (mpd_subsystem_names); i++) if (subsystems & (1 << i)) - strv_add (&v, mpd_subsystem_names[i]); + strv_append (&v, mpd_subsystem_names[i]); mpd_client_send_commandv (self, v.vector); strv_free (&v); |