mirror of
https://github.com/tmux/tmux.git
synced 2026-06-21 17:55:21 +00:00
Add some missing const, from Jere Viikari.
This commit is contained in:
@@ -152,7 +152,8 @@ environ_clear(struct environ *env, const char *name)
|
|||||||
void
|
void
|
||||||
environ_put(struct environ *env, const char *var, int flags)
|
environ_put(struct environ *env, const char *var, int flags)
|
||||||
{
|
{
|
||||||
char *name, *value;
|
char *name;
|
||||||
|
const char *value;
|
||||||
|
|
||||||
value = strchr(var, '=');
|
value = strchr(var, '=');
|
||||||
if (value == NULL)
|
if (value == NULL)
|
||||||
|
|||||||
4
format.c
4
format.c
@@ -3760,7 +3760,7 @@ format_table_compare(const void *key0, const void *entry0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Get a format callback. */
|
/* Get a format callback. */
|
||||||
static struct format_table_entry *
|
static const struct format_table_entry *
|
||||||
format_table_get(const char *key)
|
format_table_get(const char *key)
|
||||||
{
|
{
|
||||||
return (bsearch(key, format_table, nitems(format_table),
|
return (bsearch(key, format_table, nitems(format_table),
|
||||||
@@ -4094,7 +4094,7 @@ static char *
|
|||||||
format_find(struct format_tree *ft, const char *key, int modifiers,
|
format_find(struct format_tree *ft, const char *key, int modifiers,
|
||||||
const char *time_format)
|
const char *time_format)
|
||||||
{
|
{
|
||||||
struct format_table_entry *fte;
|
const struct format_table_entry *fte;
|
||||||
void *value;
|
void *value;
|
||||||
struct format_entry *fe, fe_find;
|
struct format_entry *fe, fe_find;
|
||||||
struct environ_entry *envent;
|
struct environ_entry *envent;
|
||||||
|
|||||||
@@ -484,7 +484,7 @@ input_key_vt10x(struct bufferevent *bev, key_code key)
|
|||||||
{
|
{
|
||||||
struct utf8_data ud;
|
struct utf8_data ud;
|
||||||
key_code onlykey;
|
key_code onlykey;
|
||||||
char *p;
|
const char *p;
|
||||||
static const char *standard_map[2] = {
|
static const char *standard_map[2] = {
|
||||||
"1!9(0)=+;:'\",<.>/-8? 2",
|
"1!9(0)=+;:'\",<.>/-8? 2",
|
||||||
"119900=+;;'',,..\x1f\x1f\x7f\x7f\0\0",
|
"119900=+;;'',,..\x1f\x1f\x7f\x7f\0\0",
|
||||||
|
|||||||
16
input.c
16
input.c
@@ -1365,7 +1365,7 @@ input_esc_dispatch(struct input_ctx *ictx)
|
|||||||
{
|
{
|
||||||
struct screen_write_ctx *sctx = &ictx->ctx;
|
struct screen_write_ctx *sctx = &ictx->ctx;
|
||||||
struct screen *s = sctx->s;
|
struct screen *s = sctx->s;
|
||||||
struct input_table_entry *entry;
|
const struct input_table_entry *entry;
|
||||||
|
|
||||||
if (ictx->flags & INPUT_DISCARD)
|
if (ictx->flags & INPUT_DISCARD)
|
||||||
return (0);
|
return (0);
|
||||||
@@ -1439,12 +1439,12 @@ input_esc_dispatch(struct input_ctx *ictx)
|
|||||||
static int
|
static int
|
||||||
input_csi_dispatch(struct input_ctx *ictx)
|
input_csi_dispatch(struct input_ctx *ictx)
|
||||||
{
|
{
|
||||||
struct screen_write_ctx *sctx = &ictx->ctx;
|
struct screen_write_ctx *sctx = &ictx->ctx;
|
||||||
struct screen *s = sctx->s;
|
struct screen *s = sctx->s;
|
||||||
struct input_table_entry *entry;
|
const struct input_table_entry *entry;
|
||||||
struct options *oo;
|
struct options *oo;
|
||||||
int i, n, m, ek, set, p;
|
int i, n, m, ek, set, p;
|
||||||
u_int cx, bg = ictx->cell.cell.bg;
|
u_int cx, bg = ictx->cell.cell.bg;
|
||||||
|
|
||||||
if (ictx->flags & INPUT_DISCARD)
|
if (ictx->flags & INPUT_DISCARD)
|
||||||
return (0);
|
return (0);
|
||||||
@@ -3188,7 +3188,7 @@ static int
|
|||||||
input_osc_52_parse(struct input_ctx *ictx, const char *p, u_char **out,
|
input_osc_52_parse(struct input_ctx *ictx, const char *p, u_char **out,
|
||||||
int *outlen, char *clip)
|
int *outlen, char *clip)
|
||||||
{
|
{
|
||||||
char *end;
|
const char *end;
|
||||||
size_t len;
|
size_t len;
|
||||||
const char *allow = "cpqs01234567";
|
const char *allow = "cpqs01234567";
|
||||||
u_int i, j = 0;
|
u_int i, j = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user