scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 34c5c3dab36218a94b20dc087fbcc1958ec4c719
parent 1345509e512142239a7a8e4265121e915e9e645a
Author: Roberto E. Vargas Caballero <roberto.vargas@midokura.com>
Date:   Tue, 16 Aug 2022 14:54:58 +0200

libc/malloc: Improve comment

Diffstat:
Msrc/libc/stdlib/_dtoi.c | 2++
Msrc/libc/stdlib/malloc.c | 4++--
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/libc/stdlib/_dtoi.c b/src/libc/stdlib/_dtoi.c @@ -2,6 +2,8 @@ #include <limits.h> #include <string.h> +#include "../libc.h" + int _dtoi(char c) { diff --git a/src/libc/stdlib/malloc.c b/src/libc/stdlib/malloc.c @@ -117,11 +117,11 @@ morecore(size_t nunits) /* * Run over the list of free blocks trying to find a block - * big enough for nbytes. If the block fit perfectly with + * big enough for nbytes. If the block fits perfectly with * the required size then we only have to unlink * the block. Otherwise we have to split the block and * return the right part. If we run over the full list - * without a fit then we have to require more memory + * without a fit then we have to acquire more memory * * ______________________________________ * ___________./______________________________________\_____