Ignore:
File:
1 edited

Legend:

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

    rfeeac0d r9b11a971  
    5353#include <func.h>
    5454#include <str.h>
     55#include <macros.h>
    5556#include <sysinfo/sysinfo.h>
    5657#include <ddi/device.h>
     
    118119         * Make sure the command is not already listed.
    119120         */
    120         list_foreach(cmd_list, link, cmd_info_t, hlp) {
     121        list_foreach(cmd_list, cur) {
     122                cmd_info_t *hlp = list_get_instance(cur, cmd_info_t, link);
     123               
    121124                if (hlp == cmd) {
    122125                        /* The command is already there. */
     
    610613        cmd_info_t *cmd = NULL;
    611614       
    612         list_foreach(cmd_list, link, cmd_info_t, hlp) {
     615        list_foreach(cmd_list, cur) {
     616                cmd_info_t *hlp = list_get_instance(cur, cmd_info_t, link);
    613617                spinlock_lock(&hlp->lock);
    614618               
Note: See TracChangeset for help on using the changeset viewer.