Changeset c81d4f1 in mainline for uspace/dist/src/c/demos/edit/edit.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/dist/src/c/demos/edit/edit.c

    r847844a rc81d4f1  
    588588        rc = file_save_range(fname, &sp, &ep);
    589589
    590         switch ((case_errno_t) rc) {
    591         case (case_errno_t) EINVAL:
     590        switch (rc) {
     591        case EINVAL:
    592592                status_display("Error opening file!");
    593593                break;
    594         case (case_errno_t) EIO:
     594        case EIO:
    595595                status_display("Error writing data!");
    596596                break;
Note: See TracChangeset for help on using the changeset viewer.