Ignore:
File:
1 edited

Legend:

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

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