cmdutils: move exit_program() declaration to cmdutils from avconv

Allows cmdutils to call each tool's own cleanup function.
This commit is contained in:
Anton Khirnov
2011-08-29 07:03:24 +02:00
parent 346ea9e222
commit dad09ff93f
7 changed files with 105 additions and 83 deletions

View File

@@ -320,6 +320,11 @@ static AVLFG random_state;
static FILE *logfile = NULL;
void exit_program(int ret)
{
exit(ret);
}
/* FIXME: make avserver work with IPv6 */
/* resolve host with also IP address parsing */
static int resolve_host(struct in_addr *sin_addr, const char *hostname)