From c225488cd4070a9e3df8cbf06914b327dab91608 Mon Sep 17 00:00:00 2001 From: John Jones Date: Tue, 6 Mar 2018 17:17:09 -0500 Subject: [PATCH] replace tabs with spaces --- src/rpc/cli.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/rpc/cli.cpp b/src/rpc/cli.cpp index 8687e0b..22ef34b 100644 --- a/src/rpc/cli.cpp +++ b/src/rpc/cli.cpp @@ -153,22 +153,22 @@ static char *my_rl_complete(char *token, int *match) */ static int cli_completion(char *token, char ***av) { - int num, total = 0; - char **copy; + int num, total = 0; + char **copy; - auto& cmd = cli_commands(); - num = cmd.size(); + auto& cmd = cli_commands(); + num = cmd.size(); - copy = (char **) malloc (num * sizeof(char *)); - for (auto it : cmd) { - if (!strncmp (it.c_str(), token, strlen (token))) { - copy[total] = strdup ( it.c_str() ); - total ++; - } - } - *av = copy; + copy = (char **) malloc (num * sizeof(char *)); + for (auto it : cmd) { + if (!strncmp (it.c_str(), token, strlen (token))) { + copy[total] = strdup ( it.c_str() ); + total ++; + } + } + *av = copy; - return total; + return total; } /***