From 61027e68ea2f9c307a289b9cf8cc1be2cceb13d3 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 28 Apr 2010 16:06:35 +0200 Subject: [PATCH] Fixed warnings: wrong return parameter. C90 compliant. --- src/http_command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http_command.c b/src/http_command.c index 6a0a7b4..902957a 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -138,8 +138,8 @@ void http_session_destroy(struct http_session *s) yaz_mutex_enter(http_sessions->mutex); /* only if http_session has no active http sessions on it can be destroyed */ if (s->destroy_counter == s->activity_counter) { - must_destroy = 1; struct http_session **p = 0; + must_destroy = 1; for (p = &http_sessions->session_list; *p; p = &(*p)->next) if (*p == s) { @@ -277,7 +277,7 @@ static struct http_session *locate_session(struct http_channel *c) } // Call after use of locate_session, in order to increment the destroy_counter -static struct http_session *release_session(struct http_channel *c, struct http_session *session) { +static void *release_session(struct http_channel *c, struct http_session *session) { http_sessions_t http_sessions = c->http_sessions; yaz_mutex_enter(http_sessions->mutex); if (session) -- 1.7.10.4