aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-01-15 12:01:11 +0000
committerThomas Adam <thomas@xteddy.org>2016-01-15 12:01:11 +0000
commit506adf376478c28a8ac50768cedc067fdd089483 (patch)
tree447452b49bd28529c469d1db3e8b066be830ab6d
parentea9873e60e1161b6e2b720cc04706a4b35f48763 (diff)
parentd551ab8e5cfb00fbb7a79e7f0c3f4f2780fc6824 (diff)
downloadrtmux-506adf376478c28a8ac50768cedc067fdd089483.tar.gz
rtmux-506adf376478c28a8ac50768cedc067fdd089483.tar.bz2
rtmux-506adf376478c28a8ac50768cedc067fdd089483.zip
Merge branch 'obsd-master'
-rw-r--r--environ.c6
-rw-r--r--input.c2
-rw-r--r--tmux.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/environ.c b/environ.c
index de560896..101dfafd 100644
--- a/environ.c
+++ b/environ.c
@@ -196,10 +196,10 @@ void
environ_push(struct environ *env)
{
struct environ_entry *envent;
- char **vp, *v;
+ char *v;
- for (vp = environ; *vp != NULL; vp++) {
- v = xstrdup(*vp);
+ while (*environ != NULL) {
+ v = xstrdup(*environ);
v[strcspn(v, "=")] = '\0';
unsetenv(v);
diff --git a/input.c b/input.c
index ed1ebffc..19fd48b7 100644
--- a/input.c
+++ b/input.c
@@ -100,7 +100,7 @@ struct input_ctx {
struct input_transition;
int input_split(struct input_ctx *);
int input_get(struct input_ctx *, u_int, int, int);
-void input_reply(struct input_ctx *, const char *, ...);
+void printflike(2, 3) input_reply(struct input_ctx *, const char *, ...);
void input_set_state(struct window_pane *, const struct input_transition *);
void input_reset_cell(struct input_ctx *);
diff --git a/tmux.h b/tmux.h
index 0bb6b742..a2e7b450 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1542,7 +1542,7 @@ extern struct client *cfg_client;
void start_cfg(void);
int load_cfg(const char *, struct cmd_q *, char **);
void set_cfg_file(const char *);
-void cfg_add_cause(const char *, ...);
+void printflike(1, 2) cfg_add_cause(const char *, ...);
void cfg_print_causes(struct cmd_q *);
void cfg_show_causes(struct session *);