Changeset c81d4f1 in mainline for uspace/lib/c/generic/inet/hostport.c


Ignore:
Timestamp:
2018-01-04T20:50:53Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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)
Message:

(optional) Remove the horrid hack named case_errno_t.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/inet/hostport.c

    r847844a rc81d4f1  
    264264        rc = inet_hostport_parse(str, &hp, endptr != NULL ? &eptr : NULL);
    265265        if (rc != EOK) {
    266                 switch ((case_errno_t) rc) {
    267                 case (case_errno_t) EINVAL:
     266                switch (rc) {
     267                case EINVAL:
    268268                        if (errmsg != NULL)
    269269                                *errmsg = "Invalid format";
    270270                        goto error;
    271                 case (case_errno_t) ENOMEM:
     271                case ENOMEM:
    272272                        if (errmsg != NULL)
    273273                                *errmsg = "Out of memory";
    274274                        goto error;
    275                 case (case_errno_t) EOK:
     275                case EOK:
    276276                        break;
    277277                default:
Note: See TracChangeset for help on using the changeset viewer.