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
760511ec
Commit
760511ec
authored
Jun 16, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
squashed warning around NS_STACK_SIZE
parent
203688a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mongoose.c
mongoose.c
+4
-2
No files found.
mongoose.c
View file @
760511ec
...
...
@@ -147,6 +147,8 @@ union socket_address {
struct
sockaddr_in
sin
;
#ifdef NS_ENABLE_IPV6
struct
sockaddr_in6
sin6
;
#else
struct
sockaddr
sin6
;
#endif
};
...
...
@@ -338,7 +340,7 @@ void *ns_start_thread(void *(*f)(void *), void *p) {
(
void
)
pthread_attr_init
(
&
attr
);
(
void
)
pthread_attr_setdetachstate
(
&
attr
,
PTHREAD_CREATE_DETACHED
);
#if NS_STACK_SIZE > 1
#if
defined(NS_STACK_SIZE) &&
NS_STACK_SIZE > 1
(
void
)
pthread_attr_setstacksize
(
&
attr
,
NS_STACK_SIZE
);
#endif
...
...
@@ -557,7 +559,7 @@ static sock_t ns_open_listening_socket(union socket_address *sa) {
!
setsockopt
(
sock
,
SOL_SOCKET
,
SO_REUSEADDR
,
(
void
*
)
&
on
,
sizeof
(
on
))
&&
#endif
!
bind
(
sock
,
&
sa
->
sa
,
sa
->
sa
.
sa_family
==
AF_INET
?
sizeof
(
sa
->
sin
)
:
sizeof
(
sa
->
s
a
))
&&
sizeof
(
sa
->
sin
)
:
sizeof
(
sa
->
s
in6
))
&&
!
listen
(
sock
,
SOMAXCONN
))
{
ns_set_non_blocking_mode
(
sock
);
// In case port was set to 0, get the real port number
...
...
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