mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
occtl: fixed issues with unused variables
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
@@ -53,7 +53,7 @@ int err;
|
||||
}
|
||||
|
||||
if ((err = nl_connect(sock, NETLINK_ROUTE)) < 0) {
|
||||
fprintf(stderr, "nl: error in nl_connect");
|
||||
fprintf(stderr, "nl: error in nl_connect (%d)", err);
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
||||
@@ -286,7 +286,7 @@ unsigned check_cmd(const char *cmd, const char *input,
|
||||
{
|
||||
char *t, *p;
|
||||
unsigned len, tlen;
|
||||
unsigned i, j, ret = 0;
|
||||
unsigned i, ret = 0;
|
||||
char prev;
|
||||
|
||||
while (whitespace(*input))
|
||||
@@ -300,7 +300,7 @@ unsigned check_cmd(const char *cmd, const char *input,
|
||||
|
||||
prev = 0;
|
||||
p = t;
|
||||
for (i = j = 0; i < len; i++) {
|
||||
for (i = 0; i < len; i++) {
|
||||
if (!whitespace(prev) || !whitespace(input[i])) {
|
||||
*p = input[i];
|
||||
prev = input[i];
|
||||
|
||||
@@ -1210,7 +1210,7 @@ int common_info_cmd(UserListRep * args, FILE *out, cmd_params_st *params)
|
||||
print_single_value(out, params, "Routes", "defaultroute", 1);
|
||||
}
|
||||
|
||||
if ((r = print_list_entries(out, params, "No-routes", args->user[i]->no_routes, args->user[i]->n_no_routes, 1)) < 0)
|
||||
if (print_list_entries(out, params, "No-routes", args->user[i]->no_routes, args->user[i]->n_no_routes, 1) < 0)
|
||||
goto error_parse;
|
||||
|
||||
if (print_list_entries(out, params, "iRoutes", args->user[i]->iroutes, args->user[i]->n_iroutes, 1) < 0)
|
||||
|
||||
Reference in New Issue
Block a user