Skip to content

Commit

Permalink
[Wayland] Fix remaining non-strict C prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonn committed Feb 27, 2024
1 parent 6c1a425 commit d2ad9fe
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/display-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typedef struct _display_proxy {
void (*set_input_focus)(guint window);
void (*revert_input_focus)(void);
char *(*get_clipboard_data)(int type);
void (*set_fullscreen_mode)();
void (*set_fullscreen_mode)(void);

guint (*scale)(void);

Expand Down
2 changes: 1 addition & 1 deletion include/view-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ typedef struct _view_proxy {
void (*set_size)(RofiViewState *state, gint width, gint height);
void (*get_size)(RofiViewState *state, gint *width, gint *height);

void (*pool_refresh)();
void (*pool_refresh)(void);
} view_proxy;

typedef struct {
Expand Down
2 changes: 1 addition & 1 deletion source/modes/wayland-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ static void handle_global_remove(G_GNUC_UNUSED void *data,
static struct wl_registry_listener registry_listener = {
.global = &handle_global, .global_remove = &handle_global_remove};

static int wayland_window_mode_parse_fields() {
static int wayland_window_mode_parse_fields(void) {
int result = 0;
char *savept = NULL;
// Make a copy, as strtok will modify it.
Expand Down
2 changes: 1 addition & 1 deletion source/wayland/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ static char *wayland_get_clipboard_data(int type) {
return NULL;
}

static void wayland_set_fullscreen_mode() {
static void wayland_set_fullscreen_mode(void) {
if (!wayland->wlr_surface) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion source/wayland/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ static int wayland_rofi_view_calculate_window_height(RofiViewState *state) {

static void wayland_rofi_view_hide(void) { display_early_cleanup(); }

static void wayland_rofi_view_cleanup() {
static void wayland_rofi_view_cleanup(void) {
g_debug("Cleanup.");
if (WlState.idle_timeout > 0) {
g_source_remove(WlState.idle_timeout);
Expand Down
2 changes: 1 addition & 1 deletion source/xcb/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ static void xcb_rofi_view_hide(void) {
}
}

static void xcb_rofi_view_cleanup() {
static void xcb_rofi_view_cleanup(void) {
// Clear clipboard data.
xcb_stuff_set_clipboard(NULL);
g_debug("Cleanup.");
Expand Down

0 comments on commit d2ad9fe

Please sign in to comment.