AP_HAL: fixed argv declaration to match getopt()

This commit is contained in:
Andrew Tridgell 2012-12-14 09:56:26 +11:00
parent 964bc56aa2
commit e10e3ee3be
7 changed files with 7 additions and 7 deletions

View File

@ -42,7 +42,7 @@ public:
scheduler(_scheduler)
{}
virtual void init(int argc, const char *argv[]) const = 0;
virtual void init(int argc, char * const argv[]) const = 0;
AP_HAL::UARTDriver* uartA;
AP_HAL::UARTDriver* uartB;

View File

@ -2,7 +2,7 @@
#include "HAL_AVR.h"
using namespace AP_HAL_AVR;
void HAL_AVR::init(int argc, const char *argv[]) const {
void HAL_AVR::init(int argc, char * const argv[]) const {
scheduler->init((void*)&isr_registry);

View File

@ -31,7 +31,7 @@ public:
_console, _gpio, _rcin,
_rcout, _scheduler) {}
void init(int argc, const char *argv[]) const;
void init(int argc, char * const argv[]) const;
AP_HAL_AVR::ISRRegistry isr_registry;
};
#endif // __AP_HAL_AVR_HAL_AVR_H__

View File

@ -50,7 +50,7 @@ HAL_AVR_APM1::HAL_AVR_APM1() :
&avrScheduler )
{}
void HAL_AVR_APM1::init(int argc, const char *argv[]) const {
void HAL_AVR_APM1::init(int argc, char * const argv[]) const {
scheduler->init((void*)&isrRegistry);

View File

@ -20,7 +20,7 @@
class HAL_AVR_APM1 : public AP_HAL::HAL {
public:
HAL_AVR_APM1();
void init(int argc, const char *argv[]) const;
void init(int argc, char * const argv[]) const;
};
/**

View File

@ -49,7 +49,7 @@ HAL_AVR_APM2::HAL_AVR_APM2() :
&avrScheduler )
{}
void HAL_AVR_APM2::init(int argc, const char *argv[]) const {
void HAL_AVR_APM2::init(int argc, char * const argv[]) const {
scheduler->init((void*)&isrRegistry);

View File

@ -20,7 +20,7 @@
class HAL_AVR_APM2 : public AP_HAL::HAL {
public:
HAL_AVR_APM2();
void init(int argc, const char *argv[]) const;
void init(int argc, char * const argv[]) const;
};
/**