]> xenbits.xensource.com Git - libvirt.git/commit
util: Rename variable "major" in virIsDevMapperDevice
authorJiri Denemark <jdenemar@redhat.com>
Thu, 10 Oct 2024 13:14:36 +0000 (15:14 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 14 Oct 2024 09:48:50 +0000 (11:48 +0200)
commit0c653fc9a51e4f6cc4d48f56bc5d94f4f2b4d6f5
tree2bd713db025672bc232c6cb438f86252257287f1
parentf07068d61c6c4cac284ab5e8ebfa90dcf59789a1
util: Rename variable "major" in virIsDevMapperDevice

major() is a macro defined in sys/sysmacros.h so luckily the code works,
but it's very confusing. Let's rename the local variable to make the
difference between it and the macro more obvious. And while touching the
line we can also initialize it to make sure "clever" analyzers do not
think it may be used uninitialized.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/util/virdevmapper.c