From 4b04c2f3eff53747de70204c02257790f391b413 Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Fri, 28 Mar 2014 21:08:15 +0100 Subject: l2tp: avoid useless cli_sendv() calls Replace cli_sendv by cli_send where possible. Signed-off-by: Guillaume Nault --- accel-pppd/ctrl/l2tp/l2tp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'accel-pppd/ctrl/l2tp') 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; } -- cgit v1.2.3