diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-05-26 08:46:05 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-05-26 08:46:05 +1000 |
commit | 0ca29c6ddc6e18d8d7babfac64e6d0c1c1ecfeca (patch) | |
tree | d054f5922c970815ff2b16dda638ac2cb6310932 /src/path.c | |
parent | c4be027b90040d04488d1e41bf311ec88e44c555 (diff) |
Add streq() helper to use instead of strcmp() == 0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/path.c')
-rw-r--r-- | src/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -101,8 +101,8 @@ path_seat_get_named(struct path_input *input, struct path_seat *seat; list_for_each(seat, &input->base.seat_list, base.link) { - if (strcmp(seat->base.physical_name, seat_name_physical) == 0 && - strcmp(seat->base.logical_name, seat_name_logical) == 0) + if (streq(seat->base.physical_name, seat_name_physical) && + streq(seat->base.logical_name, seat_name_logical)) return seat; } |