Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
a76b8730
Commit
a76b8730
authored
10 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Networking: Should fix a few compile errors/warnings reported by Travis
parent
f357ba6c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
net/udp/udp_callback.c
+2
-1
2 additions, 1 deletion
net/udp/udp_callback.c
net/udp/udp_sendto.c
+3
-2
3 additions, 2 deletions
net/udp/udp_sendto.c
with
5 additions
and
3 deletions
net/udp/udp_callback.c
+
2
−
1
View file @
a76b8730
/****************************************************************************
* 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"
...
...
This diff is collapsed.
Click to expand it.
net/udp/udp_sendto.c
+
3
−
2
View file @
a76b8730
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment