mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 22:51:35 +08:00
fix some errors/warnings in multiplatform examples
This commit is contained in:
@@ -52,7 +52,8 @@ using namespace px4;
|
||||
PX4_MAIN_FUNCTION(publisher);
|
||||
|
||||
#if !defined(__linux) && !(defined(__APPLE__) && defined(__MACH__))
|
||||
extern "C" __EXPORT int publisher_main(int argc, char *argv[])
|
||||
extern "C" __EXPORT int publisher_main(int argc, char *argv[]);
|
||||
int publisher_main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 1) {
|
||||
errx(1, "usage: publisher {start|stop|status}");
|
||||
@@ -73,7 +74,7 @@ extern "C" __EXPORT int publisher_main(int argc, char *argv[])
|
||||
SCHED_PRIORITY_MAX - 5,
|
||||
2000,
|
||||
publisher_task_main,
|
||||
(argv) ? (const char **)&argv[2] : (const char **)NULL);
|
||||
(argv) ? (char* const*)&argv[2] : (char* const*)NULL);
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user