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
7f990131
Commit
7f990131
authored
Oct 24, 2016
by
Sergey Lyubka
Committed by
Cesanta Bot
Oct 24, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make backend build under win32, MSVC98
PUBLISHED_FROM=961e25e133eff8ee168557f186713d5babbd0c5f
parent
8d72c2a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
mongoose.c
mongoose.c
+7
-3
No files found.
mongoose.c
View file @
7f990131
...
@@ -1744,11 +1744,11 @@ const char *c_strnstr(const char *s, const char *find, size_t slen) {
...
@@ -1744,11 +1744,11 @@ const char *c_strnstr(const char *s, const char *find, size_t slen) {
* license, as set out in <https://www.cesanta.com/license>.
* license, as set out in <https://www.cesanta.com/license>.
*/
*/
/* Amalgamated: #include "mongoose/src/internal.h" */
/* Amalgamated: #include "common/cs_time.h" */
/* Amalgamated: #include "mongoose/src/util.h" */
/* Amalgamated: #include "mongoose/src/dns.h" */
/* Amalgamated: #include "mongoose/src/dns.h" */
/* Amalgamated: #include "mongoose/src/internal.h" */
/* Amalgamated: #include "mongoose/src/resolv.h" */
/* Amalgamated: #include "mongoose/src/resolv.h" */
/* Amalgamated: #include "
common/cs_time
.h" */
/* Amalgamated: #include "
mongoose/src/util
.h" */
#define MG_MAX_HOST_LEN 200
#define MG_MAX_HOST_LEN 200
...
@@ -2143,6 +2143,10 @@ MG_INTERNAL int mg_parse_address(const char *str, union socket_address *sa,
...
@@ -2143,6 +2143,10 @@ MG_INTERNAL int mg_parse_address(const char *str, union socket_address *sa,
return
-
1
;
return
-
1
;
}
}
/* Required for MG_ENABLE_ASYNC_RESOLVER=0 */
(
void
)
host
;
(
void
)
host_len
;
ch
=
str
[
len
];
/* Character that follows the address */
ch
=
str
[
len
];
/* Character that follows the address */
return
port
<
0xffffUL
&&
(
ch
==
'\0'
||
ch
==
','
||
isspace
(
ch
))
?
len
:
-
1
;
return
port
<
0xffffUL
&&
(
ch
==
'\0'
||
ch
==
','
||
isspace
(
ch
))
?
len
:
-
1
;
}
}
...
...
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