iomenu

interactive text selection menu
Log | Files | Refs | README | LICENSE

commit 486f6970c5a75f4108b91c49edf0a0089fe07bbe
parent dfe94b799cc9591d604f4130f38a840b2fd37eac
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 18 Mar 2018 19:47:43 +0100

removed unused variables

Diffstat:
Miomenu.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

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';