X-Git-Url: http://git.madism.org/?p=apps%2Fmadtty.git;a=blobdiff_plain;f=demo%2Fboxshell.c;fp=demo%2Fboxshell.c;h=b3c8f2d9d033c20c1357f901962c1492e55ef7c3;hp=dbb47e4690644720f2e002173841a7bfa1108dd6;hb=058608e1586891e4e40beb8785a3317957658365;hpb=f38bb36465858ae6af3776175010e8c09e70f980 diff --git a/demo/boxshell.c b/demo/boxshell.c index dbb47e4..b3c8f2d 100644 --- a/demo/boxshell.c +++ b/demo/boxshell.c @@ -27,8 +27,6 @@ int main(void) { struct timeval next = { 0, 0 }; madtty_t *rt; - int pos = 0; - char buf[BUFSIZ]; signal(SIGCHLD, sigchld); @@ -47,7 +45,6 @@ int main(void) /* keep reading keypresses from the user and passing them to the terminal; * also, redraw the terminal to the window at each iteration */ - pos = 0; while (!getout) { fd_set rfds; struct timeval tv = { 0 , 1000 }, t;