mirror of
https://github.com/troglobit/editline.git
synced 2025-05-05 20:11:12 +08:00
Make sure local functions are marked static.
Sparse (cgcc) is very picky about such things, which is great.
This commit is contained in:
parent
722dae35a2
commit
cbf276d9ff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user