mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-16 06:59:44 -05:00
cleanup: Use void for zero-parameter functions
Signed-off-by: Genki Sky <sky@genki.is>
This commit is contained in:
parent
41e53d1499
commit
d1cf9acbd5
7 changed files with 8 additions and 8 deletions
|
|
@ -56,7 +56,7 @@ struct wlr_cursor_state {
|
|||
struct wl_listener layout_destroy;
|
||||
};
|
||||
|
||||
struct wlr_cursor *wlr_cursor_create() {
|
||||
struct wlr_cursor *wlr_cursor_create(void) {
|
||||
struct wlr_cursor *cur = calloc(1, sizeof(struct wlr_cursor));
|
||||
if (!cur) {
|
||||
wlr_log(L_ERROR, "Failed to allocate wlr_cursor");
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ struct wlr_output_layout_output_state {
|
|||
struct wl_listener output_destroy;
|
||||
};
|
||||
|
||||
struct wlr_output_layout *wlr_output_layout_create() {
|
||||
struct wlr_output_layout *wlr_output_layout_create(void) {
|
||||
struct wlr_output_layout *layout =
|
||||
calloc(1, sizeof(struct wlr_output_layout));
|
||||
if (layout == NULL) {
|
||||
|
|
|
|||
|
|
@ -570,7 +570,7 @@ struct wlr_surface *wlr_surface_from_resource(struct wl_resource *resource) {
|
|||
return wl_resource_get_user_data(resource);
|
||||
}
|
||||
|
||||
static struct wlr_surface_state *surface_state_create() {
|
||||
static struct wlr_surface_state *surface_state_create(void) {
|
||||
struct wlr_surface_state *state =
|
||||
calloc(1, sizeof(struct wlr_surface_state));
|
||||
if (state == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue