git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6720 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2014-02-23 19:28:53 +00:00
parent 9eeb63152d
commit e2735bcec0
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,6 @@ caddr_t _sbrk_r(struct _reent *r, int incr)
chDbgCheck(incr > 0, "_sbrk_r"); chDbgCheck(incr > 0, "_sbrk_r");
(void)r;
p = chCoreAlloc((size_t)incr); p = chCoreAlloc((size_t)incr);
if (p == NULL) { if (p == NULL) {
__errno_r(r) = ENOMEM; __errno_r(r) = ENOMEM;
@ -147,6 +146,7 @@ caddr_t _sbrk_r(struct _reent *r, int incr)
} }
return (caddr_t)p; return (caddr_t)p;
#else #else
(void)incr;
__errno_r(r) = ENOMEM; __errno_r(r) = ENOMEM;
return (caddr_t)-1; return (caddr_t)-1;
#endif #endif