Fix minor coding-style violations

...based on https://github.com/johanmalm/checkpatch.pl
This commit is contained in:
Johan Malm 2022-09-17 12:31:07 +01:00 committed by Johan Malm
parent 439cf4f848
commit d424514e24
14 changed files with 29 additions and 28 deletions

View file

@ -225,7 +225,7 @@ desktop_cycle_view(struct server *server, struct view *start_view,
assert(node->parent);
struct wl_list *list_head = &node->parent->children;
struct wl_list *list_item = &node->link;
struct wl_list *(*iter)(struct wl_list *);
struct wl_list *(*iter)(struct wl_list *list);
/* Scene nodes are ordered like last node == displayed topmost */
iter = dir == LAB_CYCLE_DIR_FORWARD ? get_prev_item : get_next_item;
@ -336,8 +336,12 @@ get_cursor_context(struct server *server)
}
return ret;
case LAB_NODE_DESC_SSD_BUTTON: {
/* Always return the top scene node for SSD buttons */
struct ssd_button *button = node_ssd_button_from_node(node);
/*
* Always return the top scene node for SSD
* buttons
*/
struct ssd_button *button =
node_ssd_button_from_node(node);
ret.node = node;
ret.type = button->type;
ret.view = button->view;