In libcfs/libcfs/util/parser.c make readline() static to avoid
conflicting with the real readline().
Test-Parameters: trivial
Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I4b90fd5d22c9fd5d193f5d18588afd3d97ca591c
Reviewed-on: https://review.whamcloud.com/46465
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
void Parser_printhelp(char *); /* Detailed help routine */
void Parser_exit(int, char **); /* Shuts down command parser */
int Parser_execarg(int argc, char **argv, command_t cmds[]);
-int execute_line(char * line);
int Parser_list_commands(const command_t *cmdlist, char *buffer,
size_t buf_size, const char *parent_cmd,
int col_start, int col_num);
#endif
/* take a string and execute the function or print help */
-int execute_line(char *line)
+static int execute_line(char *line)
{
command_t *cmd, *ambig;
char *prev;
#ifndef HAVE_LIBREADLINE
#define add_history(s)
-char *readline(char *prompt)
+static char *readline(char *prompt)
{
int size = 2048;
char *line = malloc(size);