From cbf276d9ff49b923efc8a4fcdac83a726139cd2a Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 17 Jul 2010 22:18:17 +0200 Subject: [PATCH] Make sure local functions are marked static. Sparse (cgcc) is very picky about such things, which is great. --- examples/cli.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;