vppinfra: correct clib_bitmap_set() return comment 44/36944/2
authorJon Loeliger <jdl@netgate.com>
Thu, 18 Aug 2022 14:19:43 +0000 (09:19 -0500)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 18 Aug 2022 15:32:28 +0000 (15:32 +0000)
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 <jdl@netgate.com>
Change-Id: Ia193c4673c0e4d1760e91cd7f80ebe1868a3c9b5

src/vppinfra/bitmap.h

index 02f9c7e..ec3f0a0 100644 (file)
@@ -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)