X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=server%2Feventl.c;h=f626799c2e0269ae256af796475d896f3a8a81f8;hp=76a80beab63b116ab341bd202dd3581f69f10087;hb=8de81d57ebf189d37a160fe66df667b50ba7cb86;hpb=7574c044d6c2dc8ede5c7c406f9939215a220260 diff --git a/server/eventl.c b/server/eventl.c index 76a80be..f626799 100644 --- a/server/eventl.c +++ b/server/eventl.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: eventl.c,v $ - * Revision 1.25 1998-01-29 13:30:23 adam + * Revision 1.26 1998-02-11 11:53:35 adam + * Changed code so that it compiles as C++. + * + * Revision 1.25 1998/01/29 13:30:23 adam * Better event handle system for NT/Unix. * * Revision 1.24 1997/09/04 14:19:13 adam @@ -107,7 +110,7 @@ IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags) { IOCHAN new_iochan; - if (!(new_iochan = xmalloc(sizeof(*new_iochan)))) + if (!(new_iochan = (IOCHAN)xmalloc(sizeof(*new_iochan)))) return 0; new_iochan->destroyed = 0; new_iochan->fd = fd; @@ -156,7 +159,7 @@ int event_loop(IOCHAN *iochans) else { /* Destroy the first member in the chain, and try again */ - association *assoc = iochan_getdata(*iochans); + association *assoc = (association *)iochan_getdata(*iochans); COMSTACK conn = assoc->client_link; cs_close(conn);