Changeset b7fd2a0 in mainline for uspace/lib/c/generic/adt
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- Location:
- uspace/lib/c/generic/adt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/circ_buf.c
r36f0738 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) -
uspace/lib/c/generic/adt/odict.c
r36f0738 rb7fd2a0 92 92 * @return EOK on success, EINVAL on failure 93 93 */ 94 static int odict_validate_tree(odlink_t *cur, int *rbd)95 { 96 int rc;94 static errno_t odict_validate_tree(odlink_t *cur, int *rbd) 95 { 96 errno_t rc; 97 97 int bd_a, bd_b; 98 98 int cur_d; … … 177 177 * @param odict Ordered dictionary 178 178 */ 179 int odict_validate(odict_t *odict)179 errno_t odict_validate(odict_t *odict) 180 180 { 181 181 int bd; 182 int rc;182 errno_t rc; 183 183 184 184 if (odict->root == NULL)
Note:
See TracChangeset
for help on using the changeset viewer.