Skip to content
Snippets Groups Projects
Commit a76b8730 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Networking: Should fix a few compile errors/warnings reported by Travis

parent f357ba6c
No related branches found
No related tags found
No related merge requests found
/****************************************************************************
* net/udp/udp_callback.c
*
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2009, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
......@@ -45,6 +45,7 @@
#include <nuttx/net/netconfig.h>
#include <nuttx/net/netdev.h>
#include <nuttx/net/netstats.h>
#include <nuttx/net/udp.h>
#include "devif/devif.h"
......
......@@ -378,14 +378,15 @@ ssize_t psock_udp_sendto(FAR struct socket *psock, FAR const void *buf,
socklen_t tolen)
{
FAR struct udp_conn_s *conn;
FAR const struct sockaddr_in *into;
struct sendto_s state;
net_lock_t save;
int ret;
#ifdef CONFIG_NET_ARP_SEND
FAR const struct sockaddr_in *into;
/* Make sure that the IP address mapping is in the ARP table */
#ifdef CONFIG_NET_ARP_SEND
into = (FAR const struct sockaddr_in *)to;
ret = arp_send(into->sin_addr.s_addr);
if (ret < 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment