From: Jon Loeliger Date: Thu, 18 Aug 2022 14:19:43 +0000 (-0500) Subject: vppinfra: correct clib_bitmap_set() return comment X-Git-Tag: v23.02-rc0~86 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F36944%2F2;p=vpp.git vppinfra: correct clib_bitmap_set() return comment Fix a copy-n-paste issue that left clib_bitmap_set()'s return type documentation incorrect. Chnage it to indicate that the function returns a new pointer for the bitmap that could be different due to a possible reallocation. Type: docs Signed-off-by: Jon Loeliger Change-Id: Ia193c4673c0e4d1760e91cd7f80ebe1868a3c9b5 --- diff --git a/src/vppinfra/bitmap.h b/src/vppinfra/bitmap.h index 02f9c7e55ab..ec3f0a03891 100644 --- a/src/vppinfra/bitmap.h +++ b/src/vppinfra/bitmap.h @@ -178,7 +178,7 @@ clib_bitmap_set_no_check (uword * a, uword i, uword new_value) @param ai - pointer to the bitmap @param i - the bit position to interrogate @param value - new value for the bit - @returns the old value of the bit + @returns the (possibly reallocated) bitmap object pointer */ always_inline uword * clib_bitmap_set (uword * ai, uword i, uword value)