Changeset a46da63 in mainline for libc/malloc/malloc.c


Ignore:
Timestamp:
2006-06-16T20:50:51Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
153a209
Parents:
b34fab6
Message:

big code cleanup, compile with -Wall -Werror to enforce better coding
there is currently one warning that requires attention, please review

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/malloc/malloc.c

    rb34fab6 ra46da63  
    29312931              sp->size >= extra &&
    29322932              !has_segment_link(m, sp)) { /* can't shrink if pinned */
    2933             size_t newsize = sp->size - extra;
    29342933            /* Prefer mremap, fall back to munmap */
    2935             if ((CALL_MREMAP(sp->base, sp->size, newsize, 0) != MFAIL) ||
    2936                 (CALL_MUNMAP(sp->base + newsize, extra) == 0)) {
     2934            if ((CALL_MREMAP(sp->base, sp->size, sp->size - extra, 0) != MFAIL) ||
     2935                (CALL_MUNMAP(sp->base + sp->size - extra, extra) == 0)) {
    29372936              released = extra;
    29382937            }
Note: See TracChangeset for help on using the changeset viewer.