Changes in uspace/lib/c/generic/adt/circ_buf.c [b7fd2a0:7a6065c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/circ_buf.c
rb7fd2a0 r7a6065c 82 82 * @return EOK on success, EAGAIN if circular buffer is full 83 83 */ 84 errno_t circ_buf_push(circ_buf_t *cbuf, const void *data)84 int 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 errno_t circ_buf_pop(circ_buf_t *cbuf, void *datab)101 int 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.