misc: Fix various warnings in the code

sysmobts_vty.c: In function 'activate_lchan':
sysmobts_vty.c:373:3: warning: implicit declaration of function 'lchan_activate' [-Wimplicit-function-declaration]
sysmobts_vty.c:375:3: warning: implicit declaration of function 'lchan_deactivate' [-Wimplicit-function-declaration]

eeprom.c: In function 'eeprom_ReadEthAddr':
eeprom.c:305:5: warning: pointer targets in passing argument 3 of 'eeprom_read' differ in signedness [-Wpointer-sign]
eeprom.c:260:12: note: expected 'char *' but argument is of type 'uint8_t *'
This commit is contained in:
Holger Hans Peter Freyther 2013-07-01 09:27:14 +02:00
parent 6404a76661
commit 2523cdbc7f
2 changed files with 5 additions and 1 deletions

View File

@ -302,7 +302,7 @@ eeprom_Error_t eeprom_ReadEthAddr( uint8_t *ethaddr )
{
int err;
err = eeprom_read(0, 6, ethaddr);
err = eeprom_read(0, 6, (char *) ethaddr);
if ( err != 6 )
{
return EEPROM_ERR_DEVICE;

View File

@ -46,6 +46,10 @@
#include "femtobts.h"
#include "l1_if.h"
extern int lchan_activate(struct gsm_lchan *lchan, enum gsm_lchan_state lchan_state);
extern int lchan_deactivate(struct gsm_lchan *lchan);
#define TRX_STR "Transceiver related commands\n" "TRX number\n"
#define SHOW_TRX_STR \