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
5f2f359b
Commit
5f2f359b
authored
Jan 07, 2014
by
EC2 Default User
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Squashed warning under gcc 4.6.3
parent
ccf0ce4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mongoose.c
mongoose.c
+5
-4
No files found.
mongoose.c
View file @
5f2f359b
...
@@ -3397,13 +3397,12 @@ static void transfer_file_data(struct connection *conn) {
...
@@ -3397,13 +3397,12 @@ static void transfer_file_data(struct connection *conn) {
static
void
execute_iteration
(
struct
mg_server
*
server
)
{
static
void
execute_iteration
(
struct
mg_server
*
server
)
{
struct
ll
*
lp
,
*
tmp
;
struct
ll
*
lp
,
*
tmp
;
struct
connection
*
conn
;
struct
connection
*
conn
;
void
*
msg
[
2
];
union
{
void
(
*
f
)(
struct
mg_connection
*
,
void
*
);
void
*
p
;
}
msg
[
2
];
recv
(
server
->
ctl
[
1
],
(
void
*
)
msg
,
sizeof
(
msg
),
0
);
recv
(
server
->
ctl
[
1
],
(
void
*
)
msg
,
sizeof
(
msg
),
0
);
LINKED_LIST_FOREACH
(
&
server
->
active_connections
,
lp
,
tmp
)
{
LINKED_LIST_FOREACH
(
&
server
->
active_connections
,
lp
,
tmp
)
{
conn
=
LINKED_LIST_ENTRY
(
lp
,
struct
connection
,
link
);
conn
=
LINKED_LIST_ENTRY
(
lp
,
struct
connection
,
link
);
((
void
(
*
)(
struct
mg_connection
*
,
void
*
))
msg
[
0
])
msg
[
0
].
f
(
&
conn
->
mg_conn
,
msg
[
1
].
p
);
((
struct
mg_connection
*
)
conn
,
msg
[
1
]);
}
}
}
}
...
@@ -3516,7 +3515,9 @@ void mg_iterate_over_connections(struct mg_server *server,
...
@@ -3516,7 +3515,9 @@ void mg_iterate_over_connections(struct mg_server *server,
void
(
*
func
)(
struct
mg_connection
*
,
void
*
),
void
(
*
func
)(
struct
mg_connection
*
,
void
*
),
void
*
param
)
{
void
*
param
)
{
// Send closure (function + parameter) to the IO thread to execute
// Send closure (function + parameter) to the IO thread to execute
void
*
msg
[
2
]
=
{
(
void
*
)
func
,
param
};
union
{
void
(
*
f
)(
struct
mg_connection
*
,
void
*
);
void
*
p
;
}
msg
[
2
];
msg
[
0
].
f
=
func
;
msg
[
1
].
p
=
param
;
send
(
server
->
ctl
[
0
],
(
void
*
)
msg
,
sizeof
(
msg
),
0
);
send
(
server
->
ctl
[
0
],
(
void
*
)
msg
,
sizeof
(
msg
),
0
);
}
}
...
...
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