diff options
author | June McEnroe <june@causal.agency> | 2018-10-28 02:14:22 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-10-28 02:14:22 -0400 |
commit | 36ec6cf258e9b5c3aa49cbfd3179a8714b52fee5 (patch) | |
tree | 5fe128d5375d5ea18a14ef1641da49e94d0f6f60 /url.c | |
parent | Fix verbose view name in man page (diff) | |
download | catgirl-36ec6cf258e9b5c3aa49cbfd3179a8714b52fee5.tar.gz catgirl-36ec6cf258e9b5c3aa49cbfd3179a8714b52fee5.zip |
Use const char *argv[] signatures
C is really weird about this stuff, but this makes more sense to me.
Diffstat (limited to '')
-rw-r--r-- | url.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/url.c b/url.c index b62baba..de2ebd9 100644 --- a/url.c +++ b/url.c @@ -91,14 +91,14 @@ void urlOpenMatch(struct Tag tag, const char *substr) { struct Entry entry = ringEntry(i); if (!entry.url || entry.tag != tag.id) continue; if (!strstr(entry.url, substr)) continue; - eventPipe((char *[]) { "open", entry.url, NULL }); + eventPipe((const char *[]) { "open", entry.url, NULL }); break; } } void urlOpenRange(struct Tag tag, size_t at, size_t to) { size_t argc = 1; - char *argv[2 + RingLen] = { "open" }; + const char *argv[2 + RingLen] = { "open" }; size_t tagIndex = 0; for (size_t i = RingLen - 1; i < RingLen; --i) { struct Entry entry = ringEntry(i); |