Remove unused variable / labels - sacc - sacc(omys), simple console gopher client
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/
Log
Files
Refs
Tags
LICENSE
---
commit 5c2c788d7cda17dfadca2d12738792be1b140387
parent 6b520eb8b70b98a311a13a62606567095af28290
Author: Quentin Rameau 
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(-)
---
diff --git a/sacc.c b/sacc.c
@@ -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);
diff --git a/ui_ti.c b/ui_ti.c
@@ -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;