aboutsummaryrefslogtreecommitdiff
path: root/cursor-shape.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2024-01-24 23:17:28 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-02-05 11:09:52 +0000
commite0f3703ae6c4084f9275cfc78d87e5604cc27a10 (patch)
treecdfeebf67f6bb962c5543337b952fe6cf9d40587 /cursor-shape.c
parentcsi: simplify handling of Set/Reset Mode (SM/RM) sequences (diff)
util: add streq() function and use in place of strcmp(...) == 0
Diffstat (limited to 'cursor-shape.c')
-rw-r--r--cursor-shape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cursor-shape.c b/cursor-shape.c
index a5402928..131e6f1a 100644
--- a/cursor-shape.c
+++ b/cursor-shape.c
@@ -101,7 +101,7 @@ cursor_string_to_server_shape(const char *xcursor)
for (size_t i = 0; i < ALEN(table); i++) {
for (size_t j = 0; j < ALEN(table[i]); j++) {
- if (table[i][j] != NULL && strcmp(xcursor, table[i][j]) == 0) {
+ if (table[i][j] != NULL && streq(xcursor, table[i][j])) {
return i;
}
}