Change ioq_dequeue() to return void
For symmetry with ioq_append().
This commit is contained in:
parent
2bb8923c6f
commit
13d236a1e0
2 changed files with 2 additions and 3 deletions
|
@ -43,7 +43,7 @@ extern void ioq_destroy(struct ioqueue *ioq);
|
|||
extern void ioq_drain(struct ioqueue *ioq);
|
||||
extern int ioq_makeiov(struct ioqueue *ioq, struct iovec *iov, int cc);
|
||||
extern int ioq_peek(struct ioqueue *ioq, char *buf, int cc);
|
||||
extern int ioq_dequeue(struct ioqueue *ioq, int cc);
|
||||
extern void ioq_dequeue(struct ioqueue *ioq, int cc);
|
||||
extern void ioq_append(struct ioqueue *ioq, char *buf, int cc);
|
||||
extern int ioq_qsize(struct ioqueue *ioq);
|
||||
extern int ioq_gets(struct ioqueue *ioq, char *buf, int cc);
|
||||
|
|
|
@ -129,12 +129,11 @@ ioq_peek(struct ioqueue *ioq, char *buf, int cc)
|
|||
return ioqtobuf(ioq, buf, cc);
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
ioq_dequeue(struct ioqueue *ioq, int cc)
|
||||
{
|
||||
int res = removecc(ioq, cc);
|
||||
CANT_HAPPEN(res != cc);
|
||||
return res;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue