Changeset 5a95b25 in mainline for generic/src/main/kinit.c


Ignore:
Timestamp:
2005-12-13T11:23:14Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
91ef0d95
Parents:
5bb8e45
Message:

Cleanups to make it compile with -Wall. Did not catch everything yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/main/kinit.c

    r5bb8e45 r5a95b25  
    8585                 * Just a beautification.
    8686                 */
    87                 if (t = thread_create(kmp, NULL, TASK, 0)) {
     87                if ((t = thread_create(kmp, NULL, TASK, 0))) {
    8888                        spinlock_lock(&t->lock);
    8989                        t->flags |= X_WIRED;
     
    113113                for (i = 0; i < config.cpu_count; i++) {
    114114
    115                         if (t = thread_create(kcpulb, NULL, TASK, 0)) {
     115                        if ((t = thread_create(kcpulb, NULL, TASK, 0))) {
    116116                                spinlock_lock(&t->lock);                       
    117117                                t->flags |= X_WIRED;
     
    134134         * Create kernel console.
    135135         */
    136         if (t = thread_create(kconsole, "kconsole", TASK, 0))
     136        if ((t = thread_create(kconsole, "kconsole", TASK, 0)))
    137137                thread_ready(t);
    138138        else panic("thread_create/kconsole\n");
Note: See TracChangeset for help on using the changeset viewer.