lib/create: use bool for is_power_of_2() return type

Signed-off-by: Susant Sahani <ssahani@redhat.com>
This commit is contained in:
Susant Sahani
2025-11-27 16:20:17 +05:30
committed by Richard W.M. Jones
parent 60f60e9f4e
commit a3a4fc2ba9

View File

@@ -232,7 +232,7 @@ disk_create_raw (guestfs_h *g, const char *filename, int64_t size,
}
/* http://graphics.stanford.edu/~seander/bithacks.html#DetermineIfPowerOf2 */
static int
static bool
is_power_of_2 (unsigned v)
{
return v && ((v & (v - 1)) == 0);