From bc12b9c2eb29736d2cb8d2bb479528b4969ff692 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 30 Mar 2011 16:24:38 +0200 Subject: [PATCH] Shuffle function to remove warning --- src/session.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/session.c b/src/session.c index 8a3c0f9..75fbb17 100644 --- a/src/session.c +++ b/src/session.c @@ -760,12 +760,6 @@ void session_apply_setting(struct session *se, char *dbname, char *setting, } } -/* Depreciated: use session_destroy */ -void destroy_session(struct session *se) -{ - session_destroy(se); -} - void session_destroy(struct session *se) { struct session_database *sdb; session_log(se, YLOG_DEBUG, "Destroying"); @@ -781,9 +775,13 @@ void session_destroy(struct session *se) { service_destroy(se->service); yaz_mutex_destroy(&se->session_mutex); wrbuf_destroy(se->wrbuf); - } +/* Depreciated: use session_destroy */ +void destroy_session(struct session *se) +{ + session_destroy(se); +} size_t session_get_memory_status(struct session *session) { size_t session_nmem; -- 1.7.10.4