Changes in uspace/lib/c/generic/cap.c [b7fd2a0:d5c1051] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/cap.c
rb7fd2a0 rd5c1051 81 81 * and @c cv_max gives the maximum value. 82 82 */ 83 errno_t cap_to_blocks(cap_spec_t *cap, cap_vsel_t cvsel, size_t block_size,83 int cap_to_blocks(cap_spec_t *cap, cap_vsel_t cvsel, size_t block_size, 84 84 uint64_t *rblocks) 85 85 { … … 90 90 uint64_t blocks; 91 91 uint64_t rem; 92 errno_t rc;92 int rc; 93 93 94 94 exp = cap->cunit * 3 - cap->dp; … … 144 144 unsigned sdig; 145 145 unsigned rdig; 146 errno_t rc;146 int rc; 147 147 148 148 /* Change units so that we have at most @c scap_max_idig integer digits */ … … 175 175 } 176 176 177 errno_t cap_format(cap_spec_t *cap, char **rstr)178 { 179 errno_t rc;177 int cap_format(cap_spec_t *cap, char **rstr) 178 { 179 int rc; 180 180 int ret; 181 181 const char *sunit; … … 208 208 } 209 209 210 static errno_t cap_digit_val(char c, int *val)210 static int cap_digit_val(char c, int *val) 211 211 { 212 212 switch (c) { … … 228 228 } 229 229 230 errno_t cap_parse(const char *str, cap_spec_t *cap)230 int cap_parse(const char *str, cap_spec_t *cap) 231 231 { 232 232 const char *eptr;
Note:
See TracChangeset
for help on using the changeset viewer.