diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-05 15:22:08 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-05 15:22:08 +0100 |
commit | 5745189e7b27a7b0b190c746f632318e3c1ee4d7 (patch) | |
tree | f8e5bcc777ebe647206168be7ebff945469bf10b /src/examples/publisher | |
parent | 8d6e1c4455dea2dc13a1a9b08b997ee3df8c7309 (diff) | |
download | px4-firmware-5745189e7b27a7b0b190c746f632318e3c1ee4d7.tar.gz px4-firmware-5745189e7b27a7b0b190c746f632318e3c1ee4d7.tar.bz2 px4-firmware-5745189e7b27a7b0b190c746f632318e3c1ee4d7.zip |
fix some errors/warnings in multiplatform examples
Diffstat (limited to 'src/examples/publisher')
-rw-r--r-- | src/examples/publisher/publisher_main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/examples/publisher/publisher_main.cpp b/src/examples/publisher/publisher_main.cpp index 5b50ecc6c..5cac42250 100644 --- a/src/examples/publisher/publisher_main.cpp +++ b/src/examples/publisher/publisher_main.cpp @@ -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); } |