From: Aaron M. Brown Date: Tue, 22 Jul 2025 17:59:49 +0000 (-0400) Subject: virBitmapNextClearBit: Correct virBitmapNextClearBit function header comment X-Git-Tag: v11.6.0-rc1~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=acaed8b24777cee536a5ff84e92d7e1153d73e72;p=thirdparty%2Flibvirt.git virBitmapNextClearBit: Correct virBitmapNextClearBit function header comment This patch corrects the header comment for virBitmapNextClearBIt. Currently, the header comment reads: `@pos can be -1 to search for the first set bit.` However, this statement is false. We can prove this by referencing the virbitmaptest functions, i.e virbitmaptest.c:223, in which i = 0 if (virBitmapNextClearBIt(bitmap, -1) != 0) return -1 Because this is a zero set, this case would fail if the header statement was true as is. Signed-off-by: Aaron M. Brown Reviewed-by: Michal Privoznik --- diff --git a/src/util/virbitmap.c b/src/util/virbitmap.c index 8a3f33c806..1a3e75671c 100644 --- a/src/util/virbitmap.c +++ b/src/util/virbitmap.c @@ -948,7 +948,7 @@ virBitmapLastSetBit(virBitmap *bitmap) * @pos: the position after which to search for a clear bit * * Search for the first clear bit after position @pos in bitmap @bitmap. - * @pos can be -1 to search for the first set bit. Position starts + * @pos can be -1 to search for the first clear bit. Position starts * at 0. * * Returns the position of the found bit, or -1 if no bit found.