summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-05-21 23:41:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-05-21 23:41:17 +0000
commit20176cbc737a4896f10d199d5c02ae13cc74d34b (patch)
tree6579a823bf067fa2ac65ab6283c95d5b9fd7a7cf /ffserver.c
parent64555bd9b1596dca0aeac8ffe533ddca62356b80 (diff)
Get rid of more senseless wrapper functions and use OPT_EXIT instead.
Originally committed as revision 13233 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/ffserver.c b/ffserver.c
index 08a73be969..bc45a0e0e6 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -4333,12 +4333,6 @@ static void handle_child_exit(int sig)
need_to_start_children = 1;
}
-static void opt_show_license(void)
-{
- show_license();
- exit(0);
-}
-
static void opt_debug()
{
ffserver_debug = 1;
@@ -4351,12 +4345,11 @@ static void opt_show_help(void)
"Hyper fast multi format Audio/Video streaming server\n");
printf("\n");
show_help_options(options, "Main options:\n", 0, 0);
- exit(0);
}
static const OptionDef options[] = {
- { "h", 0, {(void*)opt_show_help}, "show help" },
- { "L", 0, {(void*)opt_show_license}, "show license" },
+ { "h", OPT_EXIT, {(void*)opt_show_help}, "show help" },
+ { "L", OPT_EXIT, {(void*)show_license}, "show license" },
{ "n", OPT_BOOL, {(void *)&no_launch }, "enable no-launch mode" },
{ "d", 0, {(void*)opt_debug}, "enable debug mode" },
{ "f", HAS_ARG | OPT_STRING, {(void*)&config_filename }, "use configfile instead of /etc/ffserver.conf", "configfile" },