| Date: Tue, 9 Nov 2021 00:14:12 +0100
Remove unused variable / labels
Diffstat:
M sacc.c | 11 +++++------
M ui_ti.c | 2 --
2 files changed, 5 insertions(+), 8 deletions(-)
--- |
| @@ -419,14 +419,13 @@ static Dir *
molddiritem(char *raw)
{
Item *item, *items = NULL;
- char *s, *nl, *p;
+ char *nl, *p;
Dir *dir;
size_t i, n, nitems;
- for (s = nl = raw, nitems = 0; p = strchr(nl, '\n'); ++nitems) {
- s = nl;
- nl = p+1;
- }
+ for (nl = raw, nitems = 0; p = strchr(nl, '\n'); nl = p+1)
+ ++nitems;
+
if (!nitems) {
diag("Couldn't parse dir item");
return NULL;
@@ -531,7 +530,7 @@ connectto(const char *host, const char *port, struct cnx *c)
.ai_protocol = IPPROTO_TCP,
};
struct addrinfo *addrs, *ai;
- int r, err, conn;
+ int r, err;
sigemptyset(&set);
sigaddset(&set, SIGWINCH); |
| @@ -505,7 +505,6 @@ uiselectitem(Item *entry)
jumptoline(entry, 0, 0);
continue;
case _key_search:
- search:
free(searchstr);
if (!((searchstr = uiprompt("Search for: ")) &&
searchstr[0])) {
@@ -523,7 +522,6 @@ uiselectitem(Item *entry)
quit:
return NULL;
case _key_fetch:
- fetch:
if (entry->raw)
continue;
return entry; |