Changeset 2b3dd78 in mainline for uspace/lib/c/generic/malloc.c


Ignore:
Timestamp:
2018-01-31T12:02:00Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5595841
Parents:
a0a9cc2 (diff), 14d789c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'upstream/master' into forwardport

change tmon includes because of new stdlib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/malloc.c

    ra0a9cc2 r2b3dd78  
    3333/** @file
    3434 */
    35 
    36 #define _HELENOS_SOURCE
    3735
    3836#include <malloc.h>
     
    876874 *
    877875 */
    878 void *realloc(const void *addr, const size_t size)
    879 {
     876void *realloc(void * const addr, const size_t size)
     877{
     878        if (size == 0) {
     879                free(addr);
     880                return NULL;
     881        }
     882
    880883        if (addr == NULL)
    881884                return malloc(size);
     
    985988 *
    986989 */
    987 void free(const void *addr)
     990void free(void * const addr)
    988991{
    989992        if (addr == NULL)
Note: See TracChangeset for help on using the changeset viewer.