This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
malloc typo fixes
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 04 Sep 2012 20:25:35 -0300
- Subject: malloc typo fixes
while working on malloc, I found some typos and inconsistencies in
comments, fixed with the following patch. I've pushed it to branch
lxoliva/malloc-probes-bz742038 along with the other patches that I'm
posting momentarily.
Ok to install?
for ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* malloc/mcheck.c (mcheck_check_all): Fix typo.
* malloc/memusage.c (mmap): Likewise.
(mmap64, mremap): Likewise. Adjust name in comment.
---
malloc/mcheck.c | 2 +-
malloc/memusage.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/malloc/mcheck.c b/malloc/mcheck.c
index 9d8a414..430f871 100644
--- a/malloc/mcheck.c
+++ b/malloc/mcheck.c
@@ -122,7 +122,7 @@ checkhdr (const struct hdr *hdr)
void
mcheck_check_all (void)
{
- /* Walk through all the active blocks and test whether they were tempered
+ /* Walk through all the active blocks and test whether they were tampered
with. */
struct hdr *runp = root;
diff --git a/malloc/memusage.c b/malloc/memusage.c
index d26c4be..2f6b6b5 100644
--- a/malloc/memusage.c
+++ b/malloc/memusage.c
@@ -564,7 +564,7 @@ free (void *ptr)
}
-/* `mmap' replacement. We do not have to keep track of the sizesince
+/* `mmap' replacement. We do not have to keep track of the size since
`munmap' will get it as a parameter. */
void *
mmap (void *start, size_t len, int prot, int flags, int fd, off_t offset)
@@ -616,7 +616,7 @@ mmap (void *start, size_t len, int prot, int flags, int fd, off_t offset)
}
-/* `mmap' replacement. We do not have to keep track of the sizesince
+/* `mmap64' replacement. We do not have to keep track of the size since
`munmap' will get it as a parameter. */
void *
mmap64 (void *start, size_t len, int prot, int flags, int fd, off64_t offset)
@@ -668,7 +668,7 @@ mmap64 (void *start, size_t len, int prot, int flags, int fd, off64_t offset)
}
-/* `mmap' replacement. We do not have to keep track of the sizesince
+/* `mremap' replacement. We do not have to keep track of the size since
`munmap' will get it as a parameter. */
void *
mremap (void *start, size_t old_len, size_t len, int flags, ...)
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist Red Hat Brazil Compiler Engineer