This commit is contained in:
kris 2000-11-26 11:07:45 +00:00
parent 0bec2472fd
commit b64f677da6
5 changed files with 6 additions and 4 deletions

View File

@ -36,6 +36,8 @@
#if !defined(lint) && !defined(SCCSID)
static char sccsid[] = "@(#)key.c 8.1 (Berkeley) 6/4/93";
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint && not SCCSID */
/*
@ -601,7 +603,7 @@ key_kprint(el, key, val, ntype)
{
el_bindings_t *fp;
char unparsbuf[EL_BUFSIZ];
static char *fmt = "%-15s-> %s\n";
static const char fmt[] = "%-15s-> %s\n";
if (val != NULL)
switch (ntype) {

View File

@ -1222,7 +1222,7 @@ term_echotc(el, argc, argv)
int arg_need, arg_cols, arg_rows;
int verbose = 0, silent = 0;
char *area;
static char *fmts = "%s\n", *fmtd = "%d\n";
static const char fmts[] = "%s\n", fmtd[] = "%d\n";
struct termcapstr *t;
char buf[TC_BUFSIZE];

View File

@ -265,7 +265,6 @@ extern int nvars;
extern int ntags;
extern char unionized;
extern char line_format[];
extern int start_symbol;
extern char **symbol_name;

View File

@ -70,6 +70,7 @@ static void save_column __P((int, int));
static void sort_actions __P((void));
static void token_actions __P((void));
static const char line_format[] = "#line %d \"%s\"\n";
static int nvectors;
static int nentries;
static short **froms;

View File

@ -75,7 +75,7 @@ bucket **plhs;
int name_pool_size;
char *name_pool;
char line_format[] = "#line %d \"%s\"\n";
static const char line_format[] = "#line %d \"%s\"\n";
static void add_symbol __P((void));
static void advance_to_start __P((void));