Fix some warnings/errors detected by nuttx/tools/testbuilds.sh

This commit is contained in:
Gregory Nutt 2015-07-10 18:41:56 -06:00
parent 9669fff72b
commit ae57fd7ee2
2 changed files with 13 additions and 1 deletions

View File

@ -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");

View File

@ -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
****************************************************************************/