Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
8ec47111
Commit
8ec47111
authored
Mar 29, 2017
by
Ilia Penev
Committed by
Cesanta Bot
Mar 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix COAP compilation
PUBLISHED_FROM=0a0ef6f68d743cbba91d9ba911f1c5be69e6aac7
parent
8b67274c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
mongoose.c
mongoose.c
+5
-3
No files found.
mongoose.c
View file @
8ec47111
...
...
@@ -11529,14 +11529,15 @@ uint32_t mg_coap_send_ack(struct mg_connection *nc, uint16_t msg_id) {
return
mg_coap_send_message
(
nc
,
&
cm
);
}
static
void
coap_handler
(
struct
mg_connection
*
nc
,
int
ev
,
void
*
ev_data
)
{
static
void
coap_handler
(
struct
mg_connection
*
nc
,
int
ev
,
void
*
ev_data
MG_UD_ARG
(
void
*
user_data
))
{
struct
mbuf
*
io
=
&
nc
->
recv_mbuf
;
struct
mg_coap_message
cm
;
uint32_t
parse_res
;
memset
(
&
cm
,
0
,
sizeof
(
cm
));
nc
->
handler
(
nc
,
ev
,
ev_data
);
nc
->
handler
(
nc
,
ev
,
ev_data
MG_UD_ARG
(
user_data
)
);
switch
(
ev
)
{
case
MG_EV_RECV
:
...
...
@@ -11549,7 +11550,8 @@ static void coap_handler(struct mg_connection *nc, int ev, void *ev_data) {
*/
cm
.
flags
|=
MG_COAP_FORMAT_ERROR
;
/* LCOV_EXCL_LINE */
}
/* LCOV_EXCL_LINE */
nc
->
handler
(
nc
,
MG_COAP_EVENT_BASE
+
cm
.
msg_type
,
&
cm
);
nc
->
handler
(
nc
,
MG_COAP_EVENT_BASE
+
cm
.
msg_type
,
&
cm
MG_UD_ARG
(
user_data
));
}
mg_coap_free_options
(
&
cm
);
...
...
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