mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Cleanup list code
This commit is contained in:
parent
19e831ed3d
commit
c8776fac42
11 changed files with 17 additions and 37 deletions
|
|
@ -43,8 +43,7 @@ struct cmd_results *checkarg(int argc, const char *name, enum expected_args type
|
|||
}
|
||||
|
||||
void apply_seat_config(struct seat_config *seat_config) {
|
||||
int i;
|
||||
i = list_seq_find(config->seat_configs, seat_name_cmp, seat_config->name);
|
||||
int i = list_seq_find(config->seat_configs, seat_name_cmp, seat_config->name);
|
||||
if (i >= 0) {
|
||||
// merge existing config
|
||||
struct seat_config *sc = config->seat_configs->items[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue