Something like this might be needed in the future, once dynamic
reconfiguration has landed. But it's better to rewrite and test it then
and not keep unreferenced code hanging around cluttering the code base.
Signed-off-by: Tuomas Jorma Juhani Räsänen <tuomasjjrasanen@tjjr.fi>
SETUP_ERROR_SO_KEEPALIVE, /**< Failed to set SO_KEEPALIVE to a socket */
} SETUP_ERRORS;
-/**
- * Remove a SERVER from memory. Used from the hash table
- **/
-void remove_server(gpointer s) {
- SERVER *server;
-
- server=(SERVER*)s;
- g_free(server->exportname);
- if(server->authname)
- g_free(server->authname);
- if(server->listenaddr)
- g_free(server->listenaddr);
- if(server->prerun)
- g_free(server->prerun);
- if(server->postrun)
- g_free(server->postrun);
- if(server->transactionlog)
- g_free(server->transactionlog);
- g_free(server);
-}
-
/**
* duplicate server
* @param s the old server we want to duplicate