Changeset 63e27ef in mainline for kernel/generic/src/lib/str.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/lib/str.c

    r7354b5e r63e27ef  
    109109#include <errno.h>
    110110#include <align.h>
    111 #include <debug.h>
     111#include <assert.h>
    112112#include <macros.h>
    113113#include <mm/slab.h>
     
    567567{
    568568        /* There must be space for a null terminator in the buffer. */
    569         ASSERT(size > 0);
    570         ASSERT(src != NULL);
     569        assert(size > 0);
     570        assert(src != NULL);
    571571       
    572572        size_t src_off = 0;
     
    601601{
    602602        /* There must be space for a null terminator in the buffer. */
    603         ASSERT(size > 0);
     603        assert(size > 0);
    604604       
    605605        size_t src_off = 0;
     
    635635        size_t size = str_size(src) + 1;
    636636        char *dest = malloc(size, 0);
    637         ASSERT(dest);
     637        assert(dest);
    638638       
    639639        str_cpy(dest, size, src);
     
    668668       
    669669        char *dest = malloc(size + 1, 0);
    670         ASSERT(dest);
     670        assert(dest);
    671671       
    672672        str_ncpy(dest, size + 1, src, size);
     
    691691
    692692        /* There must be space for a null terminator in the buffer. */
    693         ASSERT(size > 0);
     693        assert(size > 0);
    694694
    695695        src_idx = 0;
     
    797797    bool *neg, uint64_t *result)
    798798{
    799         ASSERT(endptr != NULL);
    800         ASSERT(neg != NULL);
    801         ASSERT(result != NULL);
     799        assert(endptr != NULL);
     800        assert(neg != NULL);
     801        assert(result != NULL);
    802802       
    803803        *neg = false;
     
    918918    bool strict, uint64_t *result)
    919919{
    920         ASSERT(result != NULL);
     920        assert(result != NULL);
    921921       
    922922        bool neg;
Note: See TracChangeset for help on using the changeset viewer.