Make sure local functions are marked static.

Sparse (cgcc) is very picky about such things, which is great.
This commit is contained in:
Joachim Nilsson 2010-07-17 22:18:17 +02:00
parent 722dae35a2
commit cbf276d9ff

View File

@ -2,7 +2,7 @@
#include "editline.h"
#include <string.h>
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;