Changeset 205832b in mainline for kernel/test/cht/cht1.c


Ignore:
Timestamp:
2012-11-05T15:37:39Z (13 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f048658
Parents:
6b99156
Message:

Replaced 0 with NULL where appropriate (in rcu, cht, uspace hashtable, smp_call, workqueue).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/cht/cht1.c

    r6b99156 r205832b  
    9797static const char * do_sanity_test(cht_t *h)
    9898{
    99         if (cht_find_lazy(h, 0))
     99        if (cht_find_lazy(h, (void*)0))
    100100                return "Found lazy in empty table.";
    101101       
    102         if (cht_find(h, 0))
     102        if (cht_find(h, (void*)0))
    103103                return "Found in empty table.";
    104104       
    105         if (cht_remove_key(h, 0))
     105        if (cht_remove_key(h, (void*)0))
    106106                return "Removed from empty table.";
    107107       
    108108        const int val_cnt = 6;
    109         val_t *v[6] = {0};
     109        val_t *v[6] = { NULL };
    110110       
    111111        for (int i = 0; i < val_cnt; ++i)
     
    145145       
    146146        if (cht_find(h, (void*)0))
    147                 return "Fantom find.";
     147                return "Phantom find.";
    148148       
    149149        cht_link_t *item = cht_find(h, (void*)v[5]->unique_id);
     
    226226        }
    227227
    228         return 0;
     228        return NULL;
    229229}
    230230
     
    559559                return "CHT stress test failed.";
    560560        else
    561                 return 0;
    562 }
     561                return NULL;
     562}
Note: See TracChangeset for help on using the changeset viewer.