mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Another table that should be const.
This commit is contained in:
31
tty-term.c
31
tty-term.c
@ -32,7 +32,7 @@ char *tty_term_strip(const char *);
|
||||
|
||||
struct tty_terms tty_terms = SLIST_HEAD_INITIALIZER(tty_terms);
|
||||
|
||||
struct tty_term_code_entry tty_term_codes[NTTYCODE] = {
|
||||
const struct tty_term_code_entry tty_term_codes[NTTYCODE] = {
|
||||
{ TTYC_ACSC, TTYCODE_STRING, "acsc" },
|
||||
{ TTYC_AX, TTYCODE_FLAG, "AX" },
|
||||
{ TTYC_BEL, TTYCODE_STRING, "bel" },
|
||||
@ -214,13 +214,14 @@ tty_term_strip(const char *s)
|
||||
void
|
||||
tty_term_override(struct tty_term *term, const char *overrides)
|
||||
{
|
||||
struct tty_term_code_entry *ent;
|
||||
struct tty_code *code;
|
||||
char *termnext, *termstr, *entnext, *entstr;
|
||||
char *s, *ptr, *val;
|
||||
const char *errstr;
|
||||
u_int i;
|
||||
int n, removeflag;
|
||||
const struct tty_term_code_entry *ent;
|
||||
struct tty_code *code;
|
||||
char *termnext, *termstr;
|
||||
char *entnext, *entstr;
|
||||
char *s, *ptr, *val;
|
||||
const char *errstr;
|
||||
u_int i;
|
||||
int n, removeflag;
|
||||
|
||||
s = xstrdup(overrides);
|
||||
|
||||
@ -296,13 +297,13 @@ tty_term_override(struct tty_term *term, const char *overrides)
|
||||
struct tty_term *
|
||||
tty_term_find(char *name, int fd, const char *overrides, char **cause)
|
||||
{
|
||||
struct tty_term *term;
|
||||
struct tty_term_code_entry *ent;
|
||||
struct tty_code *code;
|
||||
u_int i;
|
||||
int n, error;
|
||||
char *s;
|
||||
const char *acs;
|
||||
struct tty_term *term;
|
||||
const struct tty_term_code_entry *ent;
|
||||
struct tty_code *code;
|
||||
u_int i;
|
||||
int n, error;
|
||||
char *s;
|
||||
const char *acs;
|
||||
|
||||
SLIST_FOREACH(term, &tty_terms, entry) {
|
||||
if (strcmp(term->name, name) == 0) {
|
||||
|
Reference in New Issue
Block a user