Fix coding style, mostly whitespace

This commit is contained in:
Johan Malm 2021-10-15 20:52:36 +01:00
parent f8e1d76333
commit 606b6d946e
6 changed files with 16 additions and 14 deletions

View file

@ -25,6 +25,6 @@ struct libinput_category {
};
enum device_type get_device_type(const char *s);
struct libinput_category *libinput_category_create();
struct libinput_category *libinput_category_create(void);
#endif /* __LABWC_LIBINPUT_H */

View file

@ -33,7 +33,7 @@ get_device_type(const char *s)
}
struct libinput_category *
libinput_category_create()
libinput_category_create(void)
{
struct libinput_category *l = calloc(1, sizeof(struct libinput_category));
if (!l) {

View file

@ -341,8 +341,10 @@ static void xml_tree_walk(xmlNode *node);
static void
traverse(xmlNode *n)
{
xmlAttr *attr;
process_node(n);
for (xmlAttr *attr = n->properties; attr; attr = attr->next) {
for (attr = n->properties; attr; attr = attr->next) {
xml_tree_walk(attr->children);
}
xml_tree_walk(n->children);

View file

@ -18,7 +18,7 @@ change_vt(struct server *server, unsigned int vt)
static bool
any_modifiers_pressed(struct wlr_keyboard *keyboard)
{
xkb_mod_index_t i ;
xkb_mod_index_t i;
for (i = 0; i < xkb_keymap_num_mods(keyboard->keymap); i++) {
if (xkb_state_mod_index_is_active
(keyboard->xkb_state, i,