diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2024-01-24 23:17:28 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-02-05 11:09:52 +0000 |
| commit | e0f3703ae6c4084f9275cfc78d87e5604cc27a10 (patch) | |
| tree | cdfeebf67f6bb962c5543337b952fe6cf9d40587 /log.c | |
| parent | csi: simplify handling of Set/Reset Mode (SM/RM) sequences (diff) | |
util: add streq() function and use in place of strcmp(...) == 0
Diffstat (limited to 'log.c')
| -rw-r--r-- | log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -199,7 +199,7 @@ log_level_from_string(const char *str) return -1; for (int i = 0, n = map_len(); i < n; i++) - if (strcmp(str, log_level_map[i].name) == 0) + if (streq(str, log_level_map[i].name)) return i; return -1; |
