Use atexit() instead of defining a custom exit_program() interface.

This commit is contained in:
Diego Elio Pettenò
2012-09-05 07:03:56 +00:00
committed by Derek Buitenhuis
parent bd680c7b49
commit 5e3f9979fa
8 changed files with 115 additions and 130 deletions

View File

@@ -323,11 +323,6 @@ 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)