summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2014-03-28 21:08:15 +0100
committerDmitry Kozlov <xeb@mail.ru>2014-04-01 06:48:02 +0400
commit4b04c2f3eff53747de70204c02257790f391b413 (patch)
tree0103d1b4995d857c157f924563f8e903302d7aa0 /accel-pppd
parent2833f3c88c9d1db61a36562b82e8c73d9f59e615 (diff)
downloadaccel-ppp-4b04c2f3eff53747de70204c02257790f391b413.tar.gz
accel-ppp-4b04c2f3eff53747de70204c02257790f391b413.zip
l2tp: avoid useless cli_sendv() calls
Replace cli_sendv by cli_send where possible. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c
index 10e7290..2befbb8 100644
--- a/accel-pppd/ctrl/l2tp/l2tp.c
+++ b/accel-pppd/ctrl/l2tp/l2tp.c
@@ -4086,12 +4086,12 @@ static int l2tp_create_tunnel_exec(const char *cmd, char * const *fields,
}
if (indx != fields_cnt) {
- cli_sendv(client, "argument missing for last option\r\n");
+ cli_send(client, "argument missing for last option\r\n");
return CLI_CMD_SYNTAX;
}
if (peer_indx < 0) {
- cli_sendv(client, "missing option \"peer-addr\"\r\n");
+ cli_send(client, "missing option \"peer-addr\"\r\n");
return CLI_CMD_SYNTAX;
}
@@ -4105,7 +4105,7 @@ static int l2tp_create_tunnel_exec(const char *cmd, char * const *fields,
if (secret) {
conn->secret = _strdup(secret);
if (conn->secret == NULL) {
- cli_sendv(client, "secret allocation failed\r\n");
+ cli_send(client, "secret allocation failed\r\n");
l2tp_tunnel_free(conn);
return CLI_CMD_FAILED;
}