From: Alan Cox Date: Thu, 2 Jun 2016 22:59:12 +0000 (+0100) Subject: dw: Fix sdcc build X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8743fb26ef33d8d57e0ea2cf224db34e2297496f;p=FUZIX.git dw: Fix sdcc build --- diff --git a/Applications/dw/dwgetty.c b/Applications/dw/dwgetty.c index 55cd048f..a3c2e60b 100644 --- a/Applications/dw/dwgetty.c +++ b/Applications/dw/dwgetty.c @@ -303,6 +303,10 @@ void pute( char *mess ) int main( int argc, char *argv[]) { int f; + int i; + int len; + char c[2]; + if( argc<3){ @@ -327,9 +331,6 @@ int main( int argc, char *argv[]) new.c_lflag &= ~ECHO; tcsetattr( f, TCSANOW, &new ); - int i; - int len; - write(f,listenMsg,strlen(listenMsg) ); write(f,port_txt,strlen(port_txt) ); write(f,"\r",1); @@ -346,7 +347,6 @@ int main( int argc, char *argv[]) new.c_iflag |= IGNCR; tcsetattr( f, TCSANOW, &new ); - char c[2]; c[0]='0'; c[1]=argv[1][strlen(argv[1])-1]; getty( argv[1], c, f );