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
  • kernel/generic/src/console/kconsole.c

    r847844a rc81d4f1  
    564564                uintptr_t symaddr;
    565565                errno_t rc = symtab_addr_lookup(symname, &symaddr);
    566                 switch ((case_errno_t) rc) {
    567                 case (case_errno_t) ENOENT:
     566                switch (rc) {
     567                case ENOENT:
    568568                        printf("Symbol %s not found.\n", symname);
    569569                        return false;
    570                 case (case_errno_t) EOVERFLOW:
     570                case EOVERFLOW:
    571571                        printf("Duplicate symbol %s.\n", symname);
    572572                        symtab_print_search(symname);
    573573                        return false;
    574                 case (case_errno_t) ENOTSUP:
     574                case ENOTSUP:
    575575                        printf("No symbol information available.\n");
    576576                        return false;
    577                 case (case_errno_t) EOK:
     577                case EOK:
    578578                        if (isaddr)
    579579                                *result = (sysarg_t) symaddr;
     
    594594                if (end != text + len)
    595595                        rc = EINVAL;
    596                 switch ((case_errno_t) rc) {
    597                 case (case_errno_t) EINVAL:
     596                switch (rc) {
     597                case EINVAL:
    598598                        printf("Invalid number '%s'.\n", text);
    599599                        return false;
    600                 case (case_errno_t) EOVERFLOW:
     600                case EOVERFLOW:
    601601                        printf("Integer overflow in '%s'.\n", text);
    602602                        return false;
    603                 case (case_errno_t) EOK:
     603                case EOK:
    604604                        *result = (sysarg_t) value;
    605605                        if (isptr)
Note: See TracChangeset for help on using the changeset viewer.