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/bdsh/cmds/builtins/cd/cd.c

    r847844a rc81d4f1  
    145145                return CMD_SUCCESS;
    146146        } else {
    147                 switch ((case_errno_t) rc) {
    148                 case (case_errno_t) ENOMEM:
     147                switch (rc) {
     148                case ENOMEM:
    149149                        cli_error(CL_EFAIL, "Destination path too long");
    150150                        break;
    151                 case (case_errno_t) ENOENT:
     151                case ENOENT:
    152152                        cli_error(CL_ENOENT, "Invalid directory `%s'", target_directory);
    153153                        break;
Note: See TracChangeset for help on using the changeset viewer.