summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-05-26 08:46:05 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-05-26 08:46:05 +1000
commit0ca29c6ddc6e18d8d7babfac64e6d0c1c1ecfeca (patch)
treed054f5922c970815ff2b16dda638ac2cb6310932 /src/path.c
parentc4be027b90040d04488d1e41bf311ec88e44c555 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c
index f9b1a6c..ab5587b 100644
--- a/src/path.c
+++ b/src/path.c
@@ -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;
}