Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

sbrk: Superfluous public function mbed_krbs_ex  #78

@LiyouZhou

Description

@LiyouZhou

https://github.com/ARMmbed/core-util/blob/master/source/sbrk.cpp#L59

void * mbed_krbs_ex(const ptrdiff_t size, ptrdiff_t *actual)

Is used in:

void * mbed_krbs(const ptrdiff_t size)
{
    return mbed_krbs_ex(size, NULL);
}

Few issues:

  1. It is unclear why is mbed_krbs_ex public, and what is the purpose of the actual parameter.
  2. https://github.com/ARMmbed/core-util/blob/master/source/sbrk.cpp#L82 this line does not seem to do anything.

@bogdanm Can you comment on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions