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
ead098f7
Commit
ead098f7
authored
Jan 19, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setting server_name
parent
7a129c17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
server.c
examples/server.c
+4
-3
No files found.
examples/server.c
View file @
ead098f7
...
...
@@ -74,7 +74,7 @@ typedef struct stat file_stat_t;
#define MAX_CONF_FILE_LINE_SIZE (8 * 1024)
static
int
exit_flag
;
static
char
server_name
[
4
0
];
// Set by init_server_name()
static
char
server_name
[
5
0
];
// Set by init_server_name()
static
char
config_file
[
PATH_MAX
];
// Set by process_command_line_arguments()
static
struct
mg_server
*
server
;
// Set by start_mongoose()
...
...
@@ -226,8 +226,9 @@ static void process_command_line_arguments(char *argv[], char **options) {
}
static
void
init_server_name
(
void
)
{
snprintf
(
server_name
,
sizeof
(
server_name
),
"Mongoose web server v.%s"
,
MONGOOSE_VERSION
);
const
char
*
descr
=
""
;
snprintf
(
server_name
,
sizeof
(
server_name
),
"Mongoose web server v.%s%s"
,
MONGOOSE_VERSION
,
descr
);
}
static
int
is_path_absolute
(
const
char
*
path
)
{
...
...
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