diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-02-23 19:28:55 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-02-23 19:28:55 +0000 |
commit | 59c1a8be04fc551123b89651f2316ec771ad5564 (patch) | |
tree | c3f7e611aa1d7fd126025997b58c4e73c6ba56d5 /os/various/syscalls.c | |
parent | b46baf1420ea940c598971ce157a0feebcc7d22b (diff) | |
download | ChibiOS-59c1a8be04fc551123b89651f2316ec771ad5564.tar.gz ChibiOS-59c1a8be04fc551123b89651f2316ec771ad5564.tar.bz2 ChibiOS-59c1a8be04fc551123b89651f2316ec771ad5564.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6721 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various/syscalls.c')
-rw-r--r-- | os/various/syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/various/syscalls.c b/os/various/syscalls.c index fd2449b40..b3918976c 100644 --- a/os/various/syscalls.c +++ b/os/various/syscalls.c @@ -134,7 +134,6 @@ caddr_t _sbrk_r(struct _reent *r, int incr) chDbgCheck(incr > 0, "_sbrk_r");
- (void)r;
p = chCoreAlloc((size_t)incr);
if (p == NULL) {
__errno_r(r) = ENOMEM;
@@ -142,6 +141,7 @@ caddr_t _sbrk_r(struct _reent *r, int incr) }
return (caddr_t)p;
#else
+ (void)incr;
__errno_r(r) = ENOMEM;
return (caddr_t)-1;
#endif
|