]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
malloc: Revert sense of prev_inuse in comments
authorFlorian Weimer <fweimer@redhat.com>
Fri, 9 Mar 2018 15:21:22 +0000 (16:21 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 9 Mar 2018 15:21:22 +0000 (16:21 +0100)
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
ChangeLog
malloc/malloc.c

index fa4e707babd1f78e85f98f6c948aa9119b492705..0f71d41b0aeac68dd2a06e7f3c489be8ac39c3a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-03-09  Florian Weimer  <fweimer@redhat.com>
+
+       * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
+       in comment.
+
 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
 
        [BZ #22919]
index 58f9acd4d1355d4dfb88e79f8f601239b3ea4866..e229181c5e252b1fa1e2bf800ab2ed03706c652e 100644 (file)
@@ -1287,13 +1287,13 @@ nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 /* Ptr to next physical malloc_chunk. */
 #define next_chunk(p) ((mchunkptr) (((char *) (p)) + chunksize (p)))
 
-/* Size of the chunk below P.  Only valid if prev_inuse (P).  */
+/* Size of the chunk below P.  Only valid if !prev_inuse (P).  */
 #define prev_size(p) ((p)->mchunk_prev_size)
 
-/* Set the size of the chunk below P.  Only valid if prev_inuse (P).  */
+/* Set the size of the chunk below P.  Only valid if !prev_inuse (P).  */
 #define set_prev_size(p, sz) ((p)->mchunk_prev_size = (sz))
 
-/* Ptr to previous physical malloc_chunk.  Only valid if prev_inuse (P).  */
+/* Ptr to previous physical malloc_chunk.  Only valid if !prev_inuse (P).  */
 #define prev_chunk(p) ((mchunkptr) (((char *) (p)) - prev_size (p)))
 
 /* Treat space at ptr + offset as a chunk */