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
25e646c1
Commit
25e646c1
authored
Jun 10, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Squashed warnings for MONGOOSE_NO_FILESYSTEM
parent
bd723bdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mongoose.c
mongoose.c
+4
-0
No files found.
mongoose.c
View file @
25e646c1
...
...
@@ -4173,9 +4173,11 @@ void mg_send_file(struct mg_connection *c, const char *file_name) {
#endif // !MONGOOSE_NO_FILESYSTEM
static
void
open_local_endpoint
(
struct
connection
*
conn
,
int
skip_user
)
{
#ifndef MONGOOSE_NO_FILESYSTEM
char
path
[
MAX_PATH_SIZE
];
file_stat_t
st
;
int
exists
=
0
;
#endif
// If EP_USER was set in a prev call, reset it
conn
->
endpoint_type
=
EP_NONE
;
...
...
@@ -4824,7 +4826,9 @@ static void hexdump(struct ns_connection *nc, const char *path,
static
void
mg_ev_handler
(
struct
ns_connection
*
nc
,
enum
ns_event
ev
,
void
*
p
)
{
struct
connection
*
conn
=
(
struct
connection
*
)
nc
->
connection_data
;
#ifndef MONGOOSE_NO_FILESYSTEM
struct
mg_server
*
server
=
(
struct
mg_server
*
)
nc
->
server
;
#endif
// Send NS event to the handler. Note that call_user won't send an event
// if conn == NULL. Therefore, repeat this for NS_ACCEPT event as well.
...
...
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