removed unused variables - iomenu - interactive terminal-based selection menu
HTML git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 486f6970c5a75f4108b91c49edf0a0089fe07bbe
DIR parent dfe94b799cc9591d604f4130f38a840b2fd37eac
HTML Author: Josuah Demangeon <mail@josuah.net>
Date: Sun, 18 Mar 2018 19:47:43 +0100
removed unused variables
Diffstat:
M iomenu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/iomenu.c b/iomenu.c
@@ -24,7 +24,7 @@ struct winsize ws;
static int ttyfd;
static int linec = 0, matchc = 0, cur = 0;
static char **linev = NULL, **matchv = NULL;
-static char input[LINE_MAX], formatted[LINE_MAX * 8];
+static char input[LINE_MAX];
static int hsflag = 0;
char *argv0;
@@ -146,7 +146,7 @@ filter(int searchc, char **searchv)
int n;
char *tokv[sizeof(input) * sizeof(char *) + sizeof(NULL)];
- char *s, buf[sizeof(input)];
+ char buf[sizeof(input)];
strncpy(buf, input, sizeof(input));
buf[sizeof(input) - 1] = '\0';