diff --git a/examples/cli.c b/examples/cli.c index 3445350..d695cdd 100644 --- a/examples/cli.c +++ b/examples/cli.c @@ -2,7 +2,7 @@ #include "editline.h" #include -char *list[] = { +static char *list[] = { "foo ", "bar ", "bsd ", "cli ", "ls ", "cd ", "malloc ", "tee ", NULL }; @@ -10,7 +10,7 @@ char *list[] = { ** Attempt to complete the pathname, returning an allocated copy. ** Fill in *unique if we completed it, or set it to 0 if ambiguous. */ -char *my_rl_complete(char *token, int *match) +static char *my_rl_complete(char *token, int *match) { int i; int index = -1; @@ -41,7 +41,7 @@ char *my_rl_complete(char *token, int *match) /* ** Return all possible completions. */ -int my_rl_list_possib(char *token, char ***av) +static int my_rl_list_possib(char *token, char ***av) { int i, num, total = 0; char **copy;