projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
597e3dd
)
Fixed warnings: wrong return parameter. C90 compliant.
author
Dennis Schafroth
<dennis@indexdata.com>
Wed, 28 Apr 2010 14:06:35 +0000
(16:06 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Wed, 28 Apr 2010 14:06:35 +0000
(16:06 +0200)
src/http_command.c
patch
|
blob
|
history
diff --git
a/src/http_command.c
b/src/http_command.c
index
6a0a7b4
..
902957a
100644
(file)
--- 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) {
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;
struct http_session **p = 0;
+ must_destroy = 1;
for (p = &http_sessions->session_list; *p; p = &(*p)->next)
if (*p == s)
{
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
}
// 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)
http_sessions_t http_sessions = c->http_sessions;
yaz_mutex_enter(http_sessions->mutex);
if (session)