Commit 72256c24 authored by Alessandro Rubini's avatar Alessandro Rubini

warnings: trivial fix to shell/ directory (missing headers)

Also add the missing prototypes in eeprom.h, to fix warnings in shell/
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent dfbeb7af
......@@ -47,4 +47,8 @@ int32_t eeprom_init_show(uint8_t i2cif, uint8_t i2c_addr);
int8_t eeprom_init_readcmd(uint8_t i2cif, uint8_t i2c_addr, char *buf,
uint8_t bufsize, uint8_t next);
int32_t eeprom_get_sfp(uint8_t i2cif, uint8_t i2c_addr, struct s_sfpinfo * sfp,
uint8_t add, uint8_t pos);
int8_t eeprom_init_purge(uint8_t i2cif, uint8_t i2c_addr);
#endif
......@@ -3,11 +3,13 @@
Description: launches the WR Core monitor GUI */
#include <string.h>
#include <wrc.h>
#include "shell.h"
#include "eeprom.h"
#include "syscon.h"
extern int measure_t24p(int *value);
extern int measure_t24p(uint32_t *value);
int cmd_calib(const char *args[])
{
......
#include <string.h>
#include <wrc.h>
#include "shell.h"
#include "eeprom.h"
#include "syscon.h"
#include "i2c.h"
int cmd_init(const char *args[])
{
......
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <wrc.h>
#include "softpll_ng.h"
#include "shell.h"
#include "../lib/ipv4.h"
static decode_ip(const char *str, unsigned char *ip)
static void decode_ip(const char *str, unsigned char *ip)
{
int i, x;
......@@ -38,4 +39,5 @@ int cmd_ip(const char *args[])
mprintf("IP-address: %d.%d.%d.%d\n",
ip[0], ip[1], ip[2], ip[3]);
}
return 0;
}
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <wrc.h>
#include "softpll_ng.h"
#include "shell.h"
#include "onewire.h"
#include "endpoint.h"
#include "../lib/ipv4.h"
static decode_mac(const char *str, unsigned char *mac)
static void decode_mac(const char *str, unsigned char *mac)
{
int i, x;
......@@ -44,4 +46,5 @@ int cmd_mac(const char *args[])
mprintf("MAC-address: %x:%x:%x:%x:%x:%x\n",
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
return 0;
}
......@@ -5,6 +5,7 @@
#include <errno.h>
#include <string.h>
#include <wrc.h>
#include "shell.h"
#include "wrc_ptp.h"
......
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <wrc.h>
#include "softpll_ng.h"
#include "shell.h"
......
......@@ -5,7 +5,7 @@
#include <errno.h>
#include <string.h>
#include "wrc_ptp.h"
#include "shell.h"
int cmd_ptp(const char *args[])
......
......@@ -11,6 +11,10 @@
detect - detects the transceiver type
*/
#include <string.h>
#include <stdlib.h>
#include <wrc.h>
#include "shell.h"
#include "eeprom.h"
#include "syscon.h"
......
#include "shell.h"
#include <string.h>
#include <wrc.h>
int cmd_stat(const char *args[])
{
......
......@@ -8,6 +8,8 @@
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <wrc.h>
#include "shell.h"
#include "util.h"
......
#include <wrc.h>
#include "shell.h"
#include "syscon.h"
extern const char *build_revision, *build_date;
int cmd_version(const char *args[])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment