Changeset 7dd2561 in mainline for generic/src/console/kconsole.c


Ignore:
Timestamp:
2005-12-15T15:24:52Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
80d2bdb
Parents:
dc747e3
Message:

Add LIST_INITIALIZE() macro to declare and initialize statically allocated lists.

File:
1 edited

Legend:

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

    rdc747e3 r7dd2561  
    6767 
    6868SPINLOCK_INITIALIZE(cmd_lock);  /**< Lock protecting command list. */
    69 link_t cmd_head;                /**< Command list. */
     69LIST_INITIALIZE(cmd_head);      /**< Command list. */
    7070
    7171static cmd_info_t *parse_cmdline(char *cmdline, size_t len);
     
    7777{
    7878        int i;
    79 
    80         list_initialize(&cmd_head);
    8179
    8280        cmd_init();
Note: See TracChangeset for help on using the changeset viewer.