@@ -154,7 +154,7 @@ static void die(const char *note, int errtype)
154154 if (FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM , NULL , GetLastError (), 0 ,
155155 s , sizeof (s ), NULL ))
156156 {
157- fprintf (stderr , "%s: %s\n " , note , s );
157+ fprintf (stderr , "%s: %s" , note , s );
158158 }
159159#endif
160160 break ;
@@ -163,7 +163,7 @@ static void die(const char *note, int errtype)
163163 if (FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM , NULL , WSAGetLastError (), 0 ,
164164 s , sizeof (s ), NULL ))
165165 {
166- fprintf (stderr , "%s: %s\n " , note , s );
166+ fprintf (stderr , "%s: %s" , note , s );
167167 }
168168#else
169169 fprintf (stderr , "%s: %s\n" , note , strerror (errno ));
@@ -206,8 +206,8 @@ int main(int argc, char *argv[])
206206 signal (SIGTERM , stop_sig );
207207
208208#ifdef _WIN32
209- HANDLE hComm = CreateFile (argv [1 ], GENERIC_READ | GENERIC_WRITE , 0 , NULL ,
210- OPEN_EXISTING , FILE_FLAG_OVERLAPPED , NULL );
209+ hComm = CreateFile (argv [1 ], GENERIC_READ | GENERIC_WRITE , 0 , NULL ,
210+ OPEN_EXISTING , FILE_FLAG_OVERLAPPED , NULL );
211211 if (hComm == INVALID_HANDLE_VALUE )
212212 die ("CreateFile(usb-tty)" , 3 );
213213 if (makeraw (hComm ))
0 commit comments