From ae57fd7ee2e1f512ae2f3ef3032df0171e38da2c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 10 Jul 2015 18:41:56 -0600 Subject: [PATCH] Fix some warnings/errors detected by nuttx/tools/testbuilds.sh --- examples/nxtext/nxtext_main.c | 4 +++- netutils/dhcpd/dhcpd.c | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/examples/nxtext/nxtext_main.c b/examples/nxtext/nxtext_main.c index 209941fd3..80c3479b9 100644 --- a/examples/nxtext/nxtext_main.c +++ b/examples/nxtext/nxtext_main.c @@ -458,9 +458,9 @@ int nxtext_main(int argc, char **argv) hwnd = nxpu_open(); +#ifdef CONFIG_NX_KBD /* Give keyboard input to the top window (which should be the pop-up) */ -#ifdef CONFIG_NX_KBD printf("nxtext_main: Send keyboard input: %s\n", g_pumsg); ret = nx_kbdin(g_hnx, strlen((FAR const char *)g_pumsg), g_pumsg); if (ret < 0) @@ -493,7 +493,9 @@ int nxtext_main(int argc, char **argv) /* Close the pop-up window */ +#ifdef CONFIG_NX_KBD errout_with_hwnd: +#endif if (popcnt >= 3) { printf("nxtext_main: Close pop-up\n"); diff --git a/netutils/dhcpd/dhcpd.c b/netutils/dhcpd/dhcpd.c index cb58d0a43..9b685f90d 100644 --- a/netutils/dhcpd/dhcpd.c +++ b/netutils/dhcpd/dhcpd.c @@ -278,6 +278,16 @@ static const uint8_t g_magiccookie[4] = {99, 130, 83, 99}; static const uint8_t g_anyipaddr[4] = {0, 0, 0, 0}; static struct dhcpd_state_s g_state; +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ + +#ifndef CONFIG_NETUTILS_DHCPD_HOST +/* This is an internal OS interface and should be called from this file */ + +void arp_update(FAR uint16_t *pipaddr, FAR uint8_t *ethaddr); +#endif + /**************************************************************************** * Private Functions ****************************************************************************/