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 (from parent 1:
7182ce9
)
Avoid mixed-stmt declare
author
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 22 Dec 2007 17:10:37 +0000
(17:10 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 22 Dec 2007 17:10:37 +0000
(17:10 +0000)
src/logic.c
patch
|
blob
|
history
diff --git
a/src/logic.c
b/src/logic.c
index
c7314b2
..
a004da3
100644
(file)
--- a/
src/logic.c
+++ b/
src/logic.c
@@
-1,4
+1,4
@@
-/* $Id: logic.c,v 1.72 2007-11-09 10:43:58 adam Exp $
+/* $Id: logic.c,v 1.73 2007-12-22 17:10:37 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
@@
-554,9
+554,12
@@
void session_alert_watch(struct session *s, int what)
if (s->watchlist[what].fun)
{
/* our watch is no longer associated with http_channel */
if (s->watchlist[what].fun)
{
/* our watch is no longer associated with http_channel */
+ void *data;
+ session_watchfun fun;
+
http_remove_observer(s->watchlist[what].obs);
http_remove_observer(s->watchlist[what].obs);
- session_watchfun fun = s->watchlist[what].fun;
- void *data = s->watchlist[what].data;
+ fun = s->watchlist[what].fun;
+ data = s->watchlist[what].data;
/* reset watch before fun is invoked - in case fun wants to set
it again */
/* reset watch before fun is invoked - in case fun wants to set
it again */