Fixed warnings: wrong return parameter. C90 compliant.
authorDennis Schafroth <dennis@indexdata.com>
Wed, 28 Apr 2010 14:06:35 +0000 (16:06 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 28 Apr 2010 14:06:35 +0000 (16:06 +0200)
src/http_command.c

index 6a0a7b4..902957a 100644 (file)
@@ -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)