aboutsummaryrefslogtreecommitdiff
path: root/cmd-show-environment.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-10-12 09:45:49 +0100
committerThomas Adam <thomas@xteddy.org>2016-10-12 09:45:49 +0100
commitb9dc855016cf79c8bb8469c272dbc6bca24deadc (patch)
treea2049bea7b17ededbd12b77110d47353ed832e46 /cmd-show-environment.c
parent27126f87976c63161fcae2ab1eb9c6df726a84ff (diff)
parent5c49e1d0c1afaf98512b2ffd1f31d91fecff9851 (diff)
downloadrtmux-b9dc855016cf79c8bb8469c272dbc6bca24deadc.tar.gz
rtmux-b9dc855016cf79c8bb8469c272dbc6bca24deadc.tar.bz2
rtmux-b9dc855016cf79c8bb8469c272dbc6bca24deadc.zip
Merge branch 'obsd-master'
Conflicts: format.c osdep-openbsd.c
Diffstat (limited to 'cmd-show-environment.c')
-rw-r--r--cmd-show-environment.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/cmd-show-environment.c b/cmd-show-environment.c
index 29e89274..5ad0bb8a 100644
--- a/cmd-show-environment.c
+++ b/cmd-show-environment.c
@@ -27,11 +27,11 @@
* Show environment.
*/
-enum cmd_retval cmd_show_environment_exec(struct cmd *, struct cmd_q *);
+static enum cmd_retval cmd_show_environment_exec(struct cmd *, struct cmd_q *);
-char *cmd_show_environment_escape(struct environ_entry *);
-void cmd_show_environment_print(struct cmd *, struct cmd_q *,
- struct environ_entry *);
+static char *cmd_show_environment_escape(struct environ_entry *);
+static void cmd_show_environment_print(struct cmd *, struct cmd_q *,
+ struct environ_entry *);
const struct cmd_entry cmd_show_environment_entry = {
.name = "show-environment",
@@ -46,7 +46,7 @@ const struct cmd_entry cmd_show_environment_entry = {
.exec = cmd_show_environment_exec
};
-char *
+static char *
cmd_show_environment_escape(struct environ_entry *envent)
{
const char *value = envent->value;
@@ -64,7 +64,7 @@ cmd_show_environment_escape(struct environ_entry *envent)
return (ret);
}
-void
+static void
cmd_show_environment_print(struct cmd *self, struct cmd_q *cmdq,
struct environ_entry *envent)
{
@@ -87,7 +87,7 @@ cmd_show_environment_print(struct cmd *self, struct cmd_q *cmdq,
cmdq_print(cmdq, "unset %s;", envent->name);
}
-enum cmd_retval
+static enum cmd_retval
cmd_show_environment_exec(struct cmd *self, struct cmd_q *cmdq)
{
struct args *args = self->args;