From 5f7a4b0f52d5704ddd3c652c295c95f185962473 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 30 Jun 2026 09:47:33 +0100 Subject: [PATCH] Remove unused arguments. --- cfg.c | 8 ++++---- cmd-source-file.c | 2 +- tmux.h | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cfg.c b/cfg.c index fc35aa04b..eb448f1b4 100644 --- a/cfg.c +++ b/cfg.c @@ -87,13 +87,13 @@ start_cfg(void) if (cfg_quiet) flags = CMD_PARSE_QUIET; for (i = 0; i < cfg_nfiles; i++) - load_cfg(cfg_files[i], c, NULL, NULL, flags, NULL); + load_cfg(cfg_files[i], NULL, NULL, flags, NULL); cmdq_append(NULL, cmdq_get_callback(cfg_done, NULL)); } int -load_cfg(const char *path, struct client *c, struct cmdq_item *item, +load_cfg(const char *path, struct cmdq_item *item, struct cmd_find_state *current, int flags, struct cmdq_item **new_item) { FILE *f; @@ -152,8 +152,8 @@ load_cfg(const char *path, struct client *c, struct cmdq_item *item, int load_cfg_from_buffer(const void *buf, size_t len, const char *path, - struct client *c, struct cmdq_item *item, struct cmd_find_state *current, - int flags, struct cmdq_item **new_item) + struct cmdq_item *item, struct cmd_find_state *current, int flags, + struct cmdq_item **new_item) { struct cmd_parse_input pi; struct cmd_parse_tree *tree; diff --git a/cmd-source-file.c b/cmd-source-file.c index cf5d5ff3b..cc1c04069 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -116,7 +116,7 @@ cmd_source_file_done(struct client *c, const char *path, int error, if (error != 0) cmdq_error(item, "%s: %s", strerror(error), path); else if (bsize != 0) { - if (load_cfg_from_buffer(bdata, bsize, path, c, cdata->after, + if (load_cfg_from_buffer(bdata, bsize, path, cdata->after, target, cdata->flags, &new_item) < 0) cdata->retval = CMD_RETURN_ERROR; else if (new_item != NULL) diff --git a/tmux.h b/tmux.h index 0e31df041..98d08eac1 100644 --- a/tmux.h +++ b/tmux.h @@ -2506,11 +2506,11 @@ extern char **cfg_files; extern u_int cfg_nfiles; extern int cfg_quiet; void start_cfg(void); -int load_cfg(const char *, struct client *, struct cmdq_item *, - struct cmd_find_state *, int, struct cmdq_item **); -int load_cfg_from_buffer(const void *, size_t, const char *, - struct client *, struct cmdq_item *, struct cmd_find_state *, +int load_cfg(const char *, struct cmdq_item *, struct cmd_find_state *, int, struct cmdq_item **); +int load_cfg_from_buffer(const void *, size_t, const char *, + struct cmdq_item *, struct cmd_find_state *, int, + struct cmdq_item **); void printflike(1, 2) cfg_add_cause(const char *, ...); void cfg_print_causes(struct cmdq_item *); void cfg_show_causes(struct session *);