Commit 21e79aed authored by Alessandro Rubini's avatar Alessandro Rubini

warnings: final clean up of wrc_main.c

When I add prototypes to headers, I ensure the source that
defines the function sees the header, to detect inconsistencies
(here, I add <wrc.h> to the includes).
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent c0b2a8ad
...@@ -11,6 +11,8 @@ int mprintf(char const *format, ...) ...@@ -11,6 +11,8 @@ int mprintf(char const *format, ...)
__attribute__((format(printf,1,2))); __attribute__((format(printf,1,2)));
int wrc_mon_gui(void); int wrc_mon_gui(void);
void shell_init(void);
int wrc_log_stats(uint8_t onetime);
/* This is in the library, somewhere */ /* This is in the library, somewhere */
...@@ -18,5 +20,6 @@ extern int abs(int val); ...@@ -18,5 +20,6 @@ extern int abs(int val);
/* The following from ptp-noposix */ /* The following from ptp-noposix */
extern void wr_servo_reset(void); extern void wr_servo_reset(void);
void update_rx_queues(void);
#endif /* __WRC_H__ */ #endif /* __WRC_H__ */
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include <wrc.h>
#include "board.h" #include "board.h"
#include "ptpd_exports.h" #include "ptpd_exports.h"
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <wrc.h>
#include "util.h" #include "util.h"
#include "uart.h" #include "uart.h"
#include "syscon.h" #include "syscon.h"
......
...@@ -306,6 +306,8 @@ extern char *owGetErrorMsg(int); ...@@ -306,6 +306,8 @@ extern char *owGetErrorMsg(int);
#define OWERROR_LIBUSB_SET_ALTINTERFACE_ERROR 123 #define OWERROR_LIBUSB_SET_ALTINTERFACE_ERROR 123
#define OWERROR_LIBUSB_NO_ADAPTER_FOUND 124 #define OWERROR_LIBUSB_NO_ADAPTER_FOUND 124
SMALLINT owInit(void);
// One Wire functions defined in ownetu.c // One Wire functions defined in ownetu.c
SMALLINT owFirst(int portnum, SMALLINT do_reset, SMALLINT alarm_only); SMALLINT owFirst(int portnum, SMALLINT do_reset, SMALLINT alarm_only);
SMALLINT owNext(int portnum, SMALLINT do_reset, SMALLINT alarm_only); SMALLINT owNext(int portnum, SMALLINT do_reset, SMALLINT alarm_only);
......
...@@ -118,8 +118,6 @@ void wrc_debug_printf(int subsys, const char *fmt, ...) ...@@ -118,8 +118,6 @@ void wrc_debug_printf(int subsys, const char *fmt, ...)
va_end(ap); va_end(ap);
} }
static int wrc_enable_tracking = 1;
static int ptp_enabled = 1;
int wrc_man_phase = 0; int wrc_man_phase = 0;
static void ui_update() static void ui_update()
......
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