(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_NOWAIT 0
|
||||||
#define IO_WAIT 1
|
#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 void io_init(void);
|
||||||
extern int io_noblocking(struct iop *, int);
|
extern int io_noblocking(struct iop *, int);
|
||||||
extern void io_close(struct iop *);
|
extern void io_close(struct iop *);
|
||||||
|
|
|
@ -73,9 +73,7 @@ struct iop {
|
||||||
struct ioqueue *input;
|
struct ioqueue *input;
|
||||||
struct ioqueue *output;
|
struct ioqueue *output;
|
||||||
int flags;
|
int flags;
|
||||||
s_char *assoc;
|
|
||||||
int bufsize;
|
int bufsize;
|
||||||
int (*notify)(void);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -84,8 +82,7 @@ io_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct iop *
|
struct iop *
|
||||||
io_open(int fd, int flags, int bufsize, int (*notify)(void),
|
io_open(int fd, int flags, int bufsize)
|
||||||
s_char *assoc)
|
|
||||||
{
|
{
|
||||||
struct iop *iop;
|
struct iop *iop;
|
||||||
|
|
||||||
|
@ -107,8 +104,6 @@ io_open(int fd, int flags, int bufsize, int (*notify)(void),
|
||||||
if (flags & IO_NBLOCK)
|
if (flags & IO_NBLOCK)
|
||||||
io_noblocking(iop, 1); /* FIXME check success */
|
io_noblocking(iop, 1); /* FIXME check success */
|
||||||
iop->flags = flags;
|
iop->flags = flags;
|
||||||
iop->assoc = assoc;
|
|
||||||
iop->notify = notify;
|
|
||||||
return iop;
|
return iop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,9 +91,7 @@ player_new(int s)
|
||||||
memset(lp, 0, sizeof(struct player));
|
memset(lp, 0, sizeof(struct player));
|
||||||
if (s >= 0) {
|
if (s >= 0) {
|
||||||
/* real player, not dummy created by update and market update */
|
/* real player, not dummy created by update and market update */
|
||||||
lp->iop = io_open(s,
|
lp->iop = io_open(s, IO_READ | IO_WRITE | IO_NBLOCK, IO_BUFSIZE);
|
||||||
IO_READ | IO_WRITE | IO_NBLOCK,
|
|
||||||
IO_BUFSIZE, 0, 0);
|
|
||||||
if (!lp->iop) {
|
if (!lp->iop) {
|
||||||
free(lp);
|
free(lp);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue