Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
76bb35d5
Commit
76bb35d5
authored
8 years ago
by
Dmitry Frank
Committed by
Cesanta Bot
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust udp_recv callback type for nRF5x
PUBLISHED_FROM=66db56192ae710e3f865fef47593b49e0ed4f133
parent
0187f297
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
mongoose.c
mongoose.c
+11
-1
No files found.
mongoose.c
View file @
76bb35d5
...
...
@@ -11818,8 +11818,18 @@ void mg_if_connect_tcp(struct mg_connection *nc,
}
}
/*
* Lwip included in the SDKs for nRF5x chips has different type for the
* callback of `udp_recv()`
*/
#if CS_PLATFORM == CS_P_NRF51 || CS_PLATFORM == CS_P_NRF52
static
void
mg_lwip_udp_recv_cb
(
void
*
arg
,
struct
udp_pcb
*
pcb
,
struct
pbuf
*
p
,
ip_addr_t
*
addr
,
u16_t
port
)
{
const
ip_addr_t
*
addr
,
u16_t
port
)
#else
static
void
mg_lwip_udp_recv_cb
(
void
*
arg
,
struct
udp_pcb
*
pcb
,
struct
pbuf
*
p
,
ip_addr_t
*
addr
,
u16_t
port
)
#endif
{
struct
mg_connection
*
nc
=
(
struct
mg_connection
*
)
arg
;
size_t
len
=
p
->
len
;
char
*
data
=
(
char
*
)
malloc
(
len
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment