Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
94
Issues
94
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
360c18b5
Commit
360c18b5
authored
Dec 29, 2003
by
Ed "oddsock" Zaleski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add option to display icecast version string, and cleaned up usage a bit..
svn path=/trunk/icecast/; revision=5720
parent
31510eec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/main.c
src/main.c
+11
-3
No files found.
src/main.c
View file @
360c18b5
...
...
@@ -64,8 +64,12 @@ static void _fatal_error(char *perr)
static
void
_print_usage
()
{
printf
(
"Usage:
\n
"
);
printf
(
"
\t
icecast -c <file>
\t\t
Specify configuration file
\n
"
);
printf
(
"usage: icecast [-h -b -v] -c <file>
\n
"
);
printf
(
"options:
\n
"
);
printf
(
"
\t
-c <file>
\t
Specify configuration file
\n
"
);
printf
(
"
\t
-h
\t\t
Display usage
\n
"
);
printf
(
"
\t
-v
\t\t
Display version info
\n
"
);
printf
(
"
\t
-b
\t\t
Run icecast in the background
\n
"
);
printf
(
"
\n
"
);
}
...
...
@@ -121,7 +125,7 @@ static int _parse_config_file(int argc, char **argv, char *filename, int size)
int
i
=
1
;
int
processID
=
0
;
if
(
argc
<
3
)
return
-
1
;
if
(
argc
<
2
)
return
-
1
;
while
(
i
<
argc
)
{
if
(
strcmp
(
argv
[
i
],
"-b"
)
==
0
)
{
...
...
@@ -133,6 +137,10 @@ static int _parse_config_file(int argc, char **argv, char *filename, int size)
}
#endif
}
if
(
strcmp
(
argv
[
i
],
"-v"
)
==
0
)
{
fprintf
(
stdout
,
"%s
\n
"
,
ICECAST_VERSION_STRING
);
exit
(
0
);
}
if
(
strcmp
(
argv
[
i
],
"-c"
)
==
0
)
{
if
(
i
+
1
<
argc
)
{
strncpy
(
filename
,
argv
[
i
+
1
],
size
-
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