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
5bb361b1
Commit
5bb361b1
authored
Sep 12, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Squashed warnings
parent
0d403640
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mod_lua.c
build/mod_lua.c
+1
-2
mongoose.c
mongoose.c
+2
-1
No files found.
build/mod_lua.c
View file @
5bb361b1
...
@@ -344,10 +344,9 @@ static void lsp_send_err(struct mg_connection *conn, struct lua_State *L,
...
@@ -344,10 +344,9 @@ static void lsp_send_err(struct mg_connection *conn, struct lua_State *L,
const
char
*
fmt
,
...)
{
const
char
*
fmt
,
...)
{
char
buf
[
MG_BUF_LEN
];
char
buf
[
MG_BUF_LEN
];
va_list
ap
;
va_list
ap
;
int
len
;
va_start
(
ap
,
fmt
);
va_start
(
ap
,
fmt
);
len
=
vsnprintf
(
buf
,
sizeof
(
buf
),
fmt
,
ap
);
vsnprintf
(
buf
,
sizeof
(
buf
),
fmt
,
ap
);
va_end
(
ap
);
va_end
(
ap
);
if
(
L
==
NULL
)
{
if
(
L
==
NULL
)
{
...
...
mongoose.c
View file @
5bb361b1
...
@@ -4552,7 +4552,8 @@ static int is_valid_port(unsigned int port) {
...
@@ -4552,7 +4552,8 @@ static int is_valid_port(unsigned int port) {
// Examples: 80, 443s, 127.0.0.1:3128, 1.2.3.4:8080s
// Examples: 80, 443s, 127.0.0.1:3128, 1.2.3.4:8080s
// TODO(lsm): add parsing of the IPv6 address
// TODO(lsm): add parsing of the IPv6 address
static
int
parse_port_string
(
const
struct
vec
*
vec
,
struct
socket
*
so
)
{
static
int
parse_port_string
(
const
struct
vec
*
vec
,
struct
socket
*
so
)
{
unsigned
int
a
,
b
,
c
,
d
,
ch
,
len
,
port
;
unsigned
int
a
,
b
,
c
,
d
,
ch
,
port
;
int
len
;
#if defined(USE_IPV6)
#if defined(USE_IPV6)
char
buf
[
100
];
char
buf
[
100
];
#endif
#endif
...
...
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