mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 14:13:33 +08:00
using only px4_getopt() and never the unsafe getopt()
using only <px4_getopt.h> as include, cleanup related includes added check that all the option are valid (myoptind >= argc). if there are invalid options on some script that might now lead not to run commands
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
#include "BMI055_gyro.hpp"
|
||||
|
||||
#include <px4_config.h>
|
||||
#include <platforms/px4_getopt.h>
|
||||
#include <px4_getopt.h>
|
||||
|
||||
/** driver 'main' command */
|
||||
extern "C" { __EXPORT int bmi055_main(int argc, char *argv[]); }
|
||||
|
||||
Reference in New Issue
Block a user