mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
Make a local function static
platforms/posix/main.cpp had a local function that wasn't static. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -50,8 +50,7 @@ typedef int (*px4_main_t)(int argc, char *argv[]);
|
||||
#include "apps.h"
|
||||
#include "px4_middleware.h"
|
||||
|
||||
void run_cmd(const vector<string> &appargs);
|
||||
void run_cmd(const vector<string> &appargs) {
|
||||
static void run_cmd(const vector<string> &appargs) {
|
||||
// command is appargs[0]
|
||||
string command = appargs[0];
|
||||
if (apps.find(command) != apps.end()) {
|
||||
|
||||
Reference in New Issue
Block a user