udp\udp_callback.c: Fix another C89 compatibility problem. Empty initializers are not permitted. Caused ez80 build failure.

This commit is contained in:
Gregory Nutt 2019-06-03 09:23:19 -06:00
parent 2dae0ef0db
commit ee9e8c6bc2
2 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,8 @@ static int poll_fdsetup(int fd, FAR struct pollfd *fds, bool setup)
*
****************************************************************************/
static inline int poll_setup(FAR struct pollfd *fds, nfds_t nfds, sem_t *sem)
static inline int poll_setup(FAR struct pollfd *fds, nfds_t nfds,
FAR sem_t *sem)
{
unsigned int i;
unsigned int j;

View File

@ -84,11 +84,13 @@ static uint16_t udp_datahandler(FAR struct net_driver_s *dev, FAR struct udp_con
#ifdef CONFIG_NET_IPv6
FAR struct sockaddr_in6 src_addr6 =
{
0
};
#endif
#ifdef CONFIG_NET_IPv4
FAR struct sockaddr_in src_addr4 =
{
0
};
#endif
FAR void *src_addr;