From: Thilo Graf Date: Wed, 7 Mar 2018 20:56:55 +0000 (+0100) Subject: shellexec.c: remove unused variables X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=1350e85e08abb3135dcaabeb3387f83f4c187f90;p=shellexec.git shellexec.c: remove unused variables --- diff --git a/shellexec.c b/shellexec.c index a9efdf5..28b238b 100644 --- a/shellexec.c +++ b/shellexec.c @@ -60,7 +60,7 @@ typedef struct {int fnum; FILE *fh[16];} FSTRUCT, *PFSTRUCT; static int direct[32]; int MAX_FUNCS=10; -static int STYP=1; + typedef struct {char *entry; char *message; int headerpos; int type; int underline; int stay; int showalways;} LISTENTRY; typedef LISTENTRY *PLISTENTRY; @@ -1584,7 +1584,7 @@ int llev=m->headerlevels[m->act_header], lmen=m->act_header, lentr=m->lastheader int main (int argc, char **argv) { - int index=0,cindex=0,mainloop=1,dloop=1,tv, spr, resolution; + int index=0,cindex=0,mainloop=1,tv, spr, resolution; char tstr[BUFSIZE]={0}, *rptr; PLISTENTRY pl; @@ -1848,7 +1848,7 @@ int main (int argc, char **argv) while(mainloop) { cindex=Get_Selection(&menu); - dloop=1; + switch(cindex) { case -1: