(io_open): Remove unused parameters assoc, notify. Caller changed.
#define IO_NOWAIT 0
#define IO_WAIT 1
-extern struct iop *io_open(int, int, int, int (*)(void), s_char *);
+extern struct iop *io_open(int, int, int);
extern void io_init(void);
extern int io_noblocking(struct iop *, int);
extern void io_close(struct iop *);
struct ioqueue *input;
struct ioqueue *output;
int flags;
- s_char *assoc;
int bufsize;
- int (*notify)(void);
};
void
}
struct iop *
-io_open(int fd, int flags, int bufsize, int (*notify)(void),
- s_char *assoc)
+io_open(int fd, int flags, int bufsize)
{
struct iop *iop;
if (flags & IO_NBLOCK)
io_noblocking(iop, 1); /* FIXME check success */
iop->flags = flags;
- iop->assoc = assoc;
- iop->notify = notify;
return iop;
}
memset(lp, 0, sizeof(struct player));
if (s >= 0) {
/* real player, not dummy created by update and market update */
- lp->iop = io_open(s,
- IO_READ | IO_WRITE | IO_NBLOCK,
- IO_BUFSIZE, 0, 0);
+ lp->iop = io_open(s, IO_READ | IO_WRITE | IO_NBLOCK, IO_BUFSIZE);
if (!lp->iop) {
free(lp);
return NULL;