Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
c8e8f94f
Commit
c8e8f94f
authored
Mar 17, 2015
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync main
parent
22aeb611
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
web_server.c
examples/web_server/web_server.c
+2
-10
No files found.
examples/web_server/web_server.c
View file @
c8e8f94f
...
@@ -71,12 +71,7 @@ static char server_name[50]; // Set by init_server_name()
...
@@ -71,12 +71,7 @@ static char server_name[50]; // Set by init_server_name()
static
char
s_config_file
[
PATH_MAX
];
// Set by process_command_line_arguments
static
char
s_config_file
[
PATH_MAX
];
// Set by process_command_line_arguments
static
struct
mg_server
*
server
;
// Set by start_mongoose()
static
struct
mg_server
*
server
;
// Set by start_mongoose()
static
const
char
*
s_default_document_root
=
"."
;
static
const
char
*
s_default_document_root
=
"."
;
#ifndef NS_ENABLE_SSL
static
const
char
*
s_default_listening_port
=
"8080"
;
static
const
char
*
s_default_listening_port
=
"8080"
;
#else
static
const
char
*
s_default_listening_port
=
"ssl://8443:certs/cert.pem"
;
#endif
static
char
**
s_argv
=
{
NULL
};
static
char
**
s_argv
=
{
NULL
};
static
void
set_options
(
char
*
argv
[]);
static
void
set_options
(
char
*
argv
[]);
...
@@ -101,11 +96,8 @@ static void __cdecl signal_handler(int sig_num) {
...
@@ -101,11 +96,8 @@ static void __cdecl signal_handler(int sig_num) {
}
}
static
void
vnotify
(
const
char
*
fmt
,
va_list
ap
,
int
must_exit
)
{
static
void
vnotify
(
const
char
*
fmt
,
va_list
ap
,
int
must_exit
)
{
char
msg
[
200
];
vfprintf
(
stderr
,
fmt
,
ap
);
fputc
(
'\n'
,
stderr
);
vsnprintf
(
msg
,
sizeof
(
msg
),
fmt
,
ap
);
fprintf
(
stderr
,
"%s
\n
"
,
msg
);
if
(
must_exit
)
{
if
(
must_exit
)
{
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
...
...
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