Recently Written · git

sacc

Mirror of git://bitreich.org/sacc, the sacc gopher client from bitreich.org.

git clone https://github.com/equwal/sacc

Log | Files | Refs


commit 88d7f160cb44cdb08634b034b23d2f2d640bf7fd
Hiltjo Posthuma <hiltjo@codemadness.org>
2019-11-02 14:59:59 +0100

remove unused variables

found by cppcheck

 sacc.c   | 2 +-
 ui_ti.c  | 1 -
 ui_txt.c | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/sacc.c b/sacc.c
index fc110d2..0cf890b 100644
--- a/sacc.c
+++ b/sacc.c
@@ -628,7 +628,7 @@ plumbitem(Item *item)
 {
 	char *file, *path, *tag;
 	mode_t mode = S_IRUSR|S_IWUSR|S_IRGRP;
-	int n, dest, plumbitem;
+	int dest, plumbitem;
 
 	if (file = strrchr(item->selector, '/'))
 		++file;
diff --git a/ui_ti.c b/ui_ti.c
index 92775a9..6540f53 100644
--- a/ui_ti.c
+++ b/ui_ti.c
@@ -194,7 +194,6 @@ displaystatus(Item *item)
 static void
 displayuri(Item *item)
 {
-	char *fmt;
 	size_t n;
 
 	if (item->type == 0 || item->type == 'i')
diff --git a/ui_txt.c b/ui_txt.c
index fde931b..316bc1d 100644
--- a/ui_txt.c
+++ b/ui_txt.c
@@ -173,7 +173,6 @@ uidisplay(Item *entry)
 void
 printuri(Item *item, size_t i)
 {
-	char *fmt;
 	int n;
 
 	if (!item)