src: remove NuttX ifdefs around args

It doesn't look like they are required anymore.
This commit is contained in:
Julian Oes
2020-12-14 09:26:18 +01:00
committed by Beat Küng
parent 5be2066e1a
commit 314b5e721f
3 changed files with 3 additions and 20 deletions
+1 -8
View File
@@ -1838,16 +1838,9 @@ Mavlink::task_main(int argc, char *argv[])
_interface_name = nullptr;
#ifdef __PX4_NUTTX
/* the NuttX optarg handler does not
* ignore argv[0] like the POSIX handler
* does, nor does it deal with non-flag
* verbs well. So we remove the application
* name and the verb.
*/
// We don't care about the name and verb at this point.
argc -= 2;
argv += 2;
#endif
/* don't exit from getopt loop to leave getopt global variables in consistent state,
* set error flag instead */