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 /osc.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 'osc.c')
| -rw-r--r-- | osc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -426,7 +426,7 @@ osc_set_pwd(struct terminal *term, char *string) return; } - if (strcmp(scheme, "file") == 0 && hostname_is_localhost(host)) { + if (streq(scheme, "file") && hostname_is_localhost(host)) { LOG_DBG("OSC7: pwd: %s", path); free(term->cwd); term->cwd = path; @@ -483,7 +483,7 @@ osc_uri(struct terminal *term, char *string) const char *value = operator + 1; - if (strcmp(key, "id") == 0) + if (streq(key, "id")) id = sdbm_hash(value); } |
