Changes in uspace/lib/c/generic/cap.c [d5c1051:05b59393] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/cap.c
rd5c1051 r05b59393 178 178 { 179 179 int rc; 180 int ret;181 180 const char *sunit; 182 181 uint64_t ipart; … … 197 196 sunit = cu_str[cap->cunit]; 198 197 if (cap->dp > 0) { 199 r et= asprintf(rstr, "%" PRIu64 ".%0*" PRIu64 " %s", ipart,198 rc = asprintf(rstr, "%" PRIu64 ".%0*" PRIu64 " %s", ipart, 200 199 (int)cap->dp, fpart, sunit); 201 200 } else { 202 r et= asprintf(rstr, "%" PRIu64 " %s", ipart, sunit);203 } 204 if (r et< 0)201 rc = asprintf(rstr, "%" PRIu64 " %s", ipart, sunit); 202 } 203 if (rc < 0) 205 204 return ENOMEM; 206 205
Note:
See TracChangeset
for help on using the changeset viewer.