Proper return
This commit is contained in:
parent
6e5fe34c2b
commit
0926a4ccd8
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,7 @@ rb_push_back(struct RingBuf *rb, const void *item, MEMCPY_T memcpy_fn)
|
|||
rb->write_head = rb->buffer;
|
||||
|
||||
rb->count++;
|
||||
return WriteOk;
|
||||
}
|
||||
|
||||
enum ReadResult
|
||||
|
@ -61,4 +62,5 @@ rb_pop_front(struct RingBuf *rb, void *item)
|
|||
rb->read_head = rb->buffer;
|
||||
|
||||
rb->count--;
|
||||
return ReadOk;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue