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
47651766
Commit
47651766
authored
Sep 30, 2012
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Squashed warning under linux
parent
043ea54a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mongoose.c
mongoose.c
+2
-2
mongoose.h
mongoose.h
+1
-1
No files found.
mongoose.c
View file @
47651766
...
...
@@ -526,7 +526,7 @@ static int is_file_in_memory(struct mg_connection *conn, const char *path,
struct
file
*
filep
)
{
conn
->
request_info
.
ev_data
=
(
void
*
)
path
;
if
((
filep
->
membuf
=
call_user
(
conn
,
MG_OPEN_FILE
))
!=
NULL
)
{
filep
->
size
=
(
int
)
conn
->
request_info
.
ev_data
;
filep
->
size
=
(
int
)
(
long
)
conn
->
request_info
.
ev_data
;
}
return
filep
->
membuf
!=
NULL
;
}
...
...
@@ -922,7 +922,7 @@ static void send_http_error(struct mg_connection *conn, int status,
int
len
;
conn
->
status_code
=
status
;
conn
->
request_info
.
ev_data
=
(
void
*
)
status
;
conn
->
request_info
.
ev_data
=
(
void
*
)
(
long
)
status
;
if
(
call_user
(
conn
,
MG_HTTP_ERROR
)
==
NULL
)
{
buf
[
0
]
=
'\0'
;
len
=
0
;
...
...
mongoose.h
View file @
47651766
...
...
@@ -67,7 +67,7 @@ enum mg_event {
// HTTP error must be returned to the client.
// If callback returns non-NULL, Mongoose stops handling error.
// ev_data contains HTTP error code:
// int http_reply_status_code = (
int
) request_info->ev_data;
// int http_reply_status_code = (
long
) request_info->ev_data;
MG_HTTP_ERROR
,
// Mongoose logs a message.
...
...
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