Changes in uspace/lib/c/generic/adt/circ_buf.c [7a6065c:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/circ_buf.c
r7a6065c rb7fd2a0 82 82 * @return EOK on success, EAGAIN if circular buffer is full 83 83 */ 84 int circ_buf_push(circ_buf_t *cbuf, const void *data)84 errno_t circ_buf_push(circ_buf_t *cbuf, const void *data) 85 85 { 86 86 if (circ_buf_nfree(cbuf) == 0) … … 99 99 * @return EOK on success, EAGAIN if circular buffer is full 100 100 */ 101 int circ_buf_pop(circ_buf_t *cbuf, void *datab)101 errno_t circ_buf_pop(circ_buf_t *cbuf, void *datab) 102 102 { 103 103 if (cbuf->nused == 0)
Note:
See TracChangeset
for help on using the changeset viewer.