summaryrefslogtreecommitdiffstats
path: root/status.c
diff options
context:
space:
mode:
authornicm <nicm>2017-01-13 11:56:43 +0000
committernicm <nicm>2017-01-13 11:56:43 +0000
commit22a528905d178551b9a374db2da673664f4203b3 (patch)
treea03cbaddd4a482fe74bcce52f9c6e0614e212a65 /status.c
parent95950bf668cee5a80cd9bbe28d7134a52a240426 (diff)
Make options_get_string return const string.
Diffstat (limited to 'status.c')
-rw-r--r--status.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/status.c b/status.c
index c54d8f40..9fc9a502 100644
--- a/status.c
+++ b/status.c
@@ -278,18 +278,19 @@ status_get_window_at(struct client *c, u_int x)
int
status_redraw(struct client *c)
{
- struct screen_write_ctx ctx;
- struct session *s = c->session;
- struct winlink *wl;
- struct screen old_status, window_list;
- struct grid_cell stdgc, lgc, rgc, gc;
- struct options *oo;
- time_t t;
- char *left, *right, *sep;
- u_int offset, needed;
- u_int wlstart, wlwidth, wlavailable, wloffset, wlsize;
- size_t llen, rlen, seplen;
- int larrow, rarrow;
+ struct screen_write_ctx ctx;
+ struct session *s = c->session;
+ struct winlink *wl;
+ struct screen old_status, window_list;
+ struct grid_cell stdgc, lgc, rgc, gc;
+ struct options *oo;
+ time_t t;
+ char *left, *right;
+ const char *sep;
+ u_int offset, needed;
+ u_int wlstart, wlwidth, wlavailable, wloffset, wlsize;
+ size_t llen, rlen, seplen;
+ int larrow, rarrow;
/* No status line? */
if (c->tty.sy == 0 || !options_get_number(s->options, "status"))