Changeset c81d4f1 in mainline for uspace/app/init/init.c


Ignore:
Timestamp:
2018-01-04T20:50:53Z (6 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/app/init/init.c

    r847844a rc81d4f1  
    8181    const char *fstype, const char *dev, errno_t rc)
    8282{
    83         switch ((case_errno_t) rc) {
    84         case (case_errno_t) EOK:
     83        switch (rc) {
     84        case EOK:
    8585                if (dev != NULL)
    8686                        printf("%s: %s mounted on %s (%s at %s)\n", NAME, desc, mntpt,
     
    8989                        printf("%s: %s mounted on %s (%s)\n", NAME, desc, mntpt, fstype);
    9090                break;
    91         case (case_errno_t) EBUSY:
     91        case EBUSY:
    9292                printf("%s: %s already mounted on %s\n", NAME, desc, mntpt);
    9393                return false;
    94         case (case_errno_t) ELIMIT:
     94        case ELIMIT:
    9595                printf("%s: %s limit exceeded\n", NAME, desc);
    9696                return false;
    97         case (case_errno_t) ENOENT:
     97        case ENOENT:
    9898                printf("%s: %s unknown type (%s)\n", NAME, desc, fstype);
    9999                return false;
Note: See TracChangeset for help on using the changeset viewer.