aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Elyes Haouas <ehaouas@noos.fr>2023-02-25 09:28:16 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2023-04-14 18:21:43 +0200
commit63f9bdf00126d4505235c533693c297722be57c8 (patch)
treec4375d71ff5a7c79a60501a2b0d0729ae182d8ed
parentSet output damage during direct scan-out (diff)
downloadsway-63f9bdf00126d4505235c533693c297722be57c8.tar.gz
sway-63f9bdf00126d4505235c533693c297722be57c8.tar.zst
sway-63f9bdf00126d4505235c533693c297722be57c8.zip
Fix old style function definitions
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
-rw-r--r--sway/commands/split.c2
-rw-r--r--sway/desktop/launcher.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/split.c b/sway/commands/split.c
index c8a2cfc1..500a497d 100644
--- a/sway/commands/split.c
+++ b/sway/commands/split.c
@@ -32,7 +32,7 @@ static struct cmd_results *do_split(int layout) {
32 return cmd_results_new(CMD_SUCCESS, NULL); 32 return cmd_results_new(CMD_SUCCESS, NULL);
33} 33}
34 34
35static struct cmd_results *do_unsplit() { 35static struct cmd_results *do_unsplit(void) {
36 struct sway_container *con = config->handler_context.container; 36 struct sway_container *con = config->handler_context.container;
37 struct sway_workspace *ws = config->handler_context.workspace; 37 struct sway_workspace *ws = config->handler_context.workspace;
38 38
diff --git a/sway/desktop/launcher.c b/sway/desktop/launcher.c
index b666da1e..00a7e38a 100644
--- a/sway/desktop/launcher.c
+++ b/sway/desktop/launcher.c
@@ -228,7 +228,7 @@ struct launcher_ctx *launcher_ctx_create(struct wlr_xdg_activation_token_v1 *tok
228} 228}
229 229
230// Creates a context with a new token for the internal launcher 230// Creates a context with a new token for the internal launcher
231struct launcher_ctx *launcher_ctx_create_internal() { 231struct launcher_ctx *launcher_ctx_create_internal(void) {
232 struct sway_seat *seat = input_manager_current_seat(); 232 struct sway_seat *seat = input_manager_current_seat();
233 struct sway_workspace *ws = seat_get_focused_workspace(seat); 233 struct sway_workspace *ws = seat_get_focused_workspace(seat);
234 if (!ws) { 234 if (!ws) {