Changeset 63e27ef in mainline for kernel/generic/src/sysinfo/sysinfo.c


Ignore:
Timestamp:
2017-06-19T21:47:42Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
deacc58d
Parents:
7354b5e
Message:

ASSERT → assert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/sysinfo/sysinfo.c

    r7354b5e r63e27ef  
    3434 */
    3535
     36#include <assert.h>
    3637#include <sysinfo/sysinfo.h>
    3738#include <mm/slab.h>
     
    125126    sysinfo_item_t *subtree, sysinfo_return_t **ret, bool dry_run)
    126127{
    127         ASSERT(subtree != NULL);
     128        assert(subtree != NULL);
    128129       
    129130        sysinfo_item_t *cur = subtree;
     
    191192    sysinfo_item_t **psubtree)
    192193{
    193         ASSERT(psubtree != NULL);
     194        assert(psubtree != NULL);
    194195       
    195196        if (*psubtree == NULL) {
     
    204205                *psubtree =
    205206                    (sysinfo_item_t *) slab_alloc(sysinfo_item_slab, 0);
    206                 ASSERT(*psubtree);
     207                assert(*psubtree);
    207208               
    208209                /* Fill in item name up to the delimiter */
    209210                (*psubtree)->name = str_ndup(name, i);
    210                 ASSERT((*psubtree)->name);
     211                assert((*psubtree)->name);
    211212               
    212213                /* Create subtree items */
     
    268269                        sysinfo_item_t *item =
    269270                            (sysinfo_item_t *) slab_alloc(sysinfo_item_slab, 0);
    270                         ASSERT(item);
     271                        assert(item);
    271272                       
    272273                        cur->next = item;
     
    274275                        /* Fill in item name up to the delimiter */
    275276                        item->name = str_ndup(name, i);
    276                         ASSERT(item->name);
     277                        assert(item->name);
    277278                       
    278279                        /* Create subtree items */
     
    291292       
    292293        /* Unreachable */
    293         ASSERT(false);
     294        assert(false);
    294295        return NULL;
    295296}
     
    649650       
    650651        char *path = (char *) malloc(size + 1, 0);
    651         ASSERT(path);
     652        assert(path);
    652653       
    653654        if ((copy_from_uspace(path, ptr, size + 1) == 0) &&
     
    760761       
    761762        char *path = (char *) malloc(size + 1, 0);
    762         ASSERT(path);
     763        assert(path);
    763764       
    764765        if ((copy_from_uspace(path, ptr, size + 1) == 0) &&
Note: See TracChangeset for help on using the changeset viewer.