mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 17:35:22 +08:00
POSIX main: get the newlines right
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user