projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug in statserv_remove.
[yaz-moved-to-github.git]
/
server
/
statserv.c
diff --git
a/server/statserv.c
b/server/statserv.c
index
b514f29
..
2f9c86c
100644
(file)
--- a/
server/statserv.c
+++ b/
server/statserv.c
@@
-7,7
+7,13
@@
* Chas Woodfield, Fretwell Downing Datasystems.
*
* $Log: statserv.c,v $
* Chas Woodfield, Fretwell Downing Datasystems.
*
* $Log: statserv.c,v $
- * Revision 1.47 1998-02-10 10:28:57 adam
+ * Revision 1.49 1998-02-27 14:04:55 adam
+ * Fixed bug in statserv_remove.
+ *
+ * Revision 1.48 1998/02/11 11:53:36 adam
+ * Changed code so that it compiles as C++.
+ *
+ * Revision 1.47 1998/02/10 10:28:57 adam
* Added app_name, service_dependencies, service_display_name and
* options_func. options_func allows us to specify a different function
* to interogate the command line arguments. The other members allow us
* Added app_name, service_dependencies, service_display_name and
* options_func. options_func allows us to specify a different function
* to interogate the command line arguments. The other members allow us
@@
-308,6
+314,7
@@
void statserv_remove(IOCHAN pIOChannel)
{
/* We need to look at another thread */
pNextThread = pCurrentThread->pNext;
{
/* We need to look at another thread */
pNextThread = pCurrentThread->pNext;
+ pPrevThread = pCurrentThread;
}
}
}
}
@@
-525,7
+532,7
@@
static void listener(IOCHAN h, int event)
{
if (pp != h)
{
{
if (pp != h)
{
- COMSTACK l = iochan_getdata(pp);
+ COMSTACK l = (COMSTACK)iochan_getdata(pp);
cs_close(l);
iochan_destroy(pp);
}
cs_close(l);
iochan_destroy(pp);
}
@@
-586,7
+593,7
@@
static void listener(IOCHAN h, int event)
/* close our half of the listener socket */
for (pp = pListener; pp; pp = iochan_getnext(pp))
{
/* close our half of the listener socket */
for (pp = pListener; pp; pp = iochan_getnext(pp))
{
- COMSTACK l = iochan_getdata(pp);
+ COMSTACK l = (COMSTACK)iochan_getdata(pp);
cs_close(l);
iochan_destroy(pp);
}
cs_close(l);
iochan_destroy(pp);
}