mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 05:00:36 +08:00
px4_main_t: fix method declaration throughout the code base
px4_main_t is defined as: typedef int (*px4_main_t)(int argc, char *argv[]); which matches with the definition in NuttX, given to task_create
This commit is contained in:
@@ -401,7 +401,7 @@ int uORBTest::UnitTest::test_multi()
|
||||
|
||||
|
||||
|
||||
int uORBTest::UnitTest::pub_test_multi2_entry(char *const argv[])
|
||||
int uORBTest::UnitTest::pub_test_multi2_entry(int argc, char *argv[])
|
||||
{
|
||||
uORBTest::UnitTest &t = uORBTest::UnitTest::instance();
|
||||
return t.pub_test_multi2_main();
|
||||
@@ -707,7 +707,7 @@ int uORBTest::UnitTest::test_queue()
|
||||
}
|
||||
|
||||
|
||||
int uORBTest::UnitTest::pub_test_queue_entry(char *const argv[])
|
||||
int uORBTest::UnitTest::pub_test_queue_entry(int argc, char *argv[])
|
||||
{
|
||||
uORBTest::UnitTest &t = uORBTest::UnitTest::instance();
|
||||
return t.pub_test_queue_main();
|
||||
@@ -842,7 +842,7 @@ int uORBTest::UnitTest::test_note(const char *fmt, ...)
|
||||
return OK;
|
||||
}
|
||||
|
||||
int uORBTest::UnitTest::pubsubtest_threadEntry(char *const argv[])
|
||||
int uORBTest::UnitTest::pubsubtest_threadEntry(int argc, char *argv[])
|
||||
{
|
||||
uORBTest::UnitTest &t = uORBTest::UnitTest::instance();
|
||||
return t.pubsublatency_main();
|
||||
|
||||
@@ -86,10 +86,10 @@ private:
|
||||
// Disallow copy
|
||||
UnitTest(const uORBTest::UnitTest & /*unused*/) = delete;
|
||||
|
||||
static int pubsubtest_threadEntry(char *const argv[]);
|
||||
static int pubsubtest_threadEntry(int argc, char *argv[]);
|
||||
int pubsublatency_main();
|
||||
|
||||
static int pub_test_multi2_entry(char *const argv[]);
|
||||
static int pub_test_multi2_entry(int argc, char *argv[]);
|
||||
int pub_test_multi2_main();
|
||||
|
||||
volatile bool _thread_should_exit;
|
||||
@@ -111,7 +111,7 @@ private:
|
||||
|
||||
/* queuing tests */
|
||||
int test_queue();
|
||||
static int pub_test_queue_entry(char *const argv[]);
|
||||
static int pub_test_queue_entry(int argc, char *argv[]);
|
||||
int pub_test_queue_main();
|
||||
int test_queue_poll_notify();
|
||||
volatile int _num_messages_sent = 0;
|
||||
|
||||
Reference in New Issue
Block a user