Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/kconsole.c

    rfeeac0d ra1ecb88  
    118118         * Make sure the command is not already listed.
    119119         */
    120         list_foreach(cmd_list, link, cmd_info_t, hlp) {
     120        list_foreach(cmd_list, cur) {
     121                cmd_info_t *hlp = list_get_instance(cur, cmd_info_t, link);
     122               
    121123                if (hlp == cmd) {
    122124                        /* The command is already there. */
     
    610612        cmd_info_t *cmd = NULL;
    611613       
    612         list_foreach(cmd_list, link, cmd_info_t, hlp) {
     614        list_foreach(cmd_list, cur) {
     615                cmd_info_t *hlp = list_get_instance(cur, cmd_info_t, link);
    613616                spinlock_lock(&hlp->lock);
    614617               
Note: See TracChangeset for help on using the changeset viewer.