X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fzoom-socket.c;h=5950baa0315dd3af6e2d01d1059cc57f1d547c80;hb=479969ddd4d243955f2e64ef8571926429ad4f37;hp=fc1df84fccedd989d69c85a4c9ce5ee8819a3cef;hpb=5b851cf1bb19aea8448630ac6f179e53d8847e57;p=yaz-moved-to-github.git diff --git a/src/zoom-socket.c b/src/zoom-socket.c index fc1df84..5950baa 100644 --- a/src/zoom-socket.c +++ b/src/zoom-socket.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: zoom-socket.c,v 1.3 2007-02-28 11:14:56 mike Exp $ + * $Id: zoom-socket.c,v 1.4 2007-05-06 20:12:20 adam Exp $ */ /** * \file zoom-socket.c @@ -136,8 +136,9 @@ ZOOM_API(int) ZOOM_API(int) ZOOM_event_sys_poll(int no, ZOOM_connection *cs) { - struct pollfd *pollfds = xmalloc(no * sizeof *pollfds); - ZOOM_connection *poll_cs = xmalloc(no * sizeof *poll_cs); + struct pollfd *pollfds = (struct pollfd *) xmalloc(no * sizeof *pollfds); + ZOOM_connection *poll_cs = (ZOOM_connection *) + xmalloc(no * sizeof *poll_cs); int i, r; int nfds = 0; int timeout = 30;