Changeset c81d4f1 in mainline for uspace/lib/c/generic/inet/host.c
- Timestamp:
- 2018-01-04T20:50:53Z (6 years ago)
- Children:
- 3b47db6
- Parents:
- 847844a
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/inet/host.c
r847844a rc81d4f1 210 210 rc = inet_host_parse(str, &host, endptr != NULL ? &eptr : NULL); 211 211 if (rc != EOK) { 212 switch ( (case_errno_t)rc) {213 case (case_errno_t)EINVAL:212 switch (rc) { 213 case EINVAL: 214 214 if (errmsg != NULL) 215 215 *errmsg = "Invalid format"; 216 216 goto error; 217 case (case_errno_t)ENOMEM:217 case ENOMEM: 218 218 if (errmsg != NULL) 219 219 *errmsg = "Out of memory";
Note:
See TracChangeset
for help on using the changeset viewer.