(iop): Remove unused members assoc, notify.
(io_open): Remove unused parameters assoc, notify. Caller changed.
This commit is contained in:
parent
ed074ff6f2
commit
7d5a6b817e
3 changed files with 3 additions and 10 deletions
|
@ -46,7 +46,7 @@
|
|||
#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 *);
|
||||
|
|
|
@ -73,9 +73,7 @@ struct iop {
|
|||
struct ioqueue *input;
|
||||
struct ioqueue *output;
|
||||
int flags;
|
||||
s_char *assoc;
|
||||
int bufsize;
|
||||
int (*notify)(void);
|
||||
};
|
||||
|
||||
void
|
||||
|
@ -84,8 +82,7 @@ io_init(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;
|
||||
|
||||
|
@ -107,8 +104,6 @@ io_open(int fd, int flags, int bufsize, int (*notify)(void),
|
|||
if (flags & IO_NBLOCK)
|
||||
io_noblocking(iop, 1); /* FIXME check success */
|
||||
iop->flags = flags;
|
||||
iop->assoc = assoc;
|
||||
iop->notify = notify;
|
||||
return iop;
|
||||
}
|
||||
|
||||
|
|
|
@ -91,9 +91,7 @@ player_new(int s)
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue