Change ioq_dequeue() to return void

For symmetry with ioq_append().
This commit is contained in:
Markus Armbruster 2010-08-29 11:38:02 +02:00
parent 2bb8923c6f
commit 13d236a1e0
2 changed files with 2 additions and 3 deletions

View file

@ -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);

View file

@ -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