From 7826d40ff997e76d7cc4153ddde8bac6273e3a26 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 3 Dec 2019 10:47:22 +0000 Subject: [PATCH] Style nits in function arguments. --- attributes.c | 4 ++-- grid.c | 2 +- options.c | 2 +- server-client.c | 2 +- window-buffer.c | 4 ++-- window-client.c | 2 +- window-tree.c | 8 ++++---- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/attributes.c b/attributes.c index 5849af2b..ca88a056 100644 --- a/attributes.c +++ b/attributes.c @@ -59,8 +59,8 @@ attributes_fromstring(const char *str) size_t end; u_int i; struct { - const char* name; - int attr; + const char *name; + int attr; } table[] = { { "bright", GRID_ATTR_BRIGHT }, { "bold", GRID_ATTR_BRIGHT }, diff --git a/grid.c b/grid.c index a016dc12..b2031045 100644 --- a/grid.c +++ b/grid.c @@ -204,7 +204,7 @@ grid_clear_cell(struct grid *gd, u_int px, u_int py, u_int bg) /* Check grid y position. */ static int -grid_check_y(struct grid *gd, const char* from, u_int py) +grid_check_y(struct grid *gd, const char *from, u_int py) { if (py >= gd->hsize + gd->sy) { log_debug("%s: y out of range: %u", from, py); diff --git a/options.c b/options.c index 6bc54ef8..7402b724 100644 --- a/options.c +++ b/options.c @@ -610,7 +610,7 @@ options_match(const char *s, int *idx, int *ambiguous) struct options_entry * options_match_get(struct options *oo, const char *s, int *idx, int only, - int* ambiguous) + int *ambiguous) { char *name; struct options_entry *o; diff --git a/server-client.c b/server-client.c index c644bb01..bd256cb8 100644 --- a/server-client.c +++ b/server-client.c @@ -1581,7 +1581,7 @@ server_client_check_exit(struct client *c) /* Redraw timer callback. */ static void server_client_redraw_timer(__unused int fd, __unused short events, - __unused void* data) + __unused void *data) { log_debug("redraw timer fired"); } diff --git a/window-buffer.c b/window-buffer.c index b1115182..4091bc07 100644 --- a/window-buffer.c +++ b/window-buffer.c @@ -334,7 +334,7 @@ window_buffer_resize(struct window_mode_entry *wme, u_int sx, u_int sy) } static void -window_buffer_do_delete(void* modedata, void *itemdata, +window_buffer_do_delete(void *modedata, void *itemdata, __unused struct client *c, __unused key_code key) { struct window_buffer_modedata *data = modedata; @@ -348,7 +348,7 @@ window_buffer_do_delete(void* modedata, void *itemdata, } static void -window_buffer_do_paste(void* modedata, void *itemdata, struct client *c, +window_buffer_do_paste(void *modedata, void *itemdata, struct client *c, __unused key_code key) { struct window_buffer_modedata *data = modedata; diff --git a/window-client.c b/window-client.c index 2ca9c012..22a0f2e2 100644 --- a/window-client.c +++ b/window-client.c @@ -313,7 +313,7 @@ window_client_resize(struct window_mode_entry *wme, u_int sx, u_int sy) } static void -window_client_do_detach(void* modedata, void *itemdata, +window_client_do_detach(void *modedata, void *itemdata, __unused struct client *c, key_code key) { struct window_client_modedata *data = modedata; diff --git a/window-tree.c b/window-tree.c index 4dce1fe8..e0aa4314 100644 --- a/window-tree.c +++ b/window-tree.c @@ -317,7 +317,7 @@ window_tree_filter_pane(struct session *s, struct winlink *wl, static int window_tree_build_window(struct session *s, struct winlink *wl, - void* modedata, struct mode_tree_sort_criteria *sort_crit, + void *modedata, struct mode_tree_sort_criteria *sort_crit, struct mode_tree_item *parent, const char *filter) { struct window_tree_modedata *data = modedata; @@ -383,7 +383,7 @@ empty: } static void -window_tree_build_session(struct session *s, void* modedata, +window_tree_build_session(struct session *s, void *modedata, struct mode_tree_sort_criteria *sort_crit, const char *filter) { struct window_tree_modedata *data = modedata; @@ -973,7 +973,7 @@ window_tree_get_target(struct window_tree_itemdata *item, } static void -window_tree_command_each(void* modedata, void* itemdata, struct client *c, +window_tree_command_each(void *modedata, void *itemdata, struct client *c, __unused key_code key) { struct window_tree_modedata *data = modedata; @@ -1030,7 +1030,7 @@ window_tree_command_free(void *modedata) } static void -window_tree_kill_each(__unused void* modedata, void* itemdata, +window_tree_kill_each(__unused void *modedata, void *itemdata, __unused struct client *c, __unused key_code key) { struct window_tree_itemdata *item = itemdata;