From dad09ff93f5df1ec987493f404d43cd16991e992 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 29 Aug 2011 07:03:24 +0200 Subject: cmdutils: move exit_program() declaration to cmdutils from avconv Allows cmdutils to call each tool's own cleanup function. --- avserver.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'avserver.c') diff --git a/avserver.c b/avserver.c index 2b028a3..1b11cbf 100644 --- a/avserver.c +++ b/avserver.c @@ -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) -- cgit v1.1