POSIX main: get the newlines right

This commit is contained in:
Julian Oes
2016-06-01 15:42:00 +01:00
committed by Lorenz Meier
parent a381c6cea5
commit 4cb073a48b
+1 -4
View File
@@ -146,10 +146,6 @@ static void usage()
static void process_line(string &line, bool exit_on_fail)
{
if (line.length() == 0) {
printf("\n");
}
vector<string> appargs(10);
stringstream(line) >> appargs[0] >> appargs[1] >> appargs[2] >> appargs[3] >> appargs[4] >> appargs[5] >> appargs[6] >>
@@ -340,6 +336,7 @@ int main(int argc, char **argv)
}
process_line(mystr, false);
cout << endl;
mystr = "";
buf_ptr_read = buf_ptr_write;