]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage_util: Drop getDeviceType()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Sep 2023 07:14:11 +0000 (09:14 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 6 Sep 2023 07:24:56 +0000 (09:24 +0200)
commit2dd1b04014df5a47e028568063ea055575d7fa76
tree1d14545f7922e1c64b0f902e942e9baad7661dc7
parentabecd6633e2b5c191080b6838c4c7658af3fddd8
storage_util: Drop getDeviceType()

The sole purpose of getDeviceType() is to parse a file that
contains one integer (and a newline character). Well, we already
have a function for that: virFileReadValueInt(). Use the latter
and drop the former.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_util.c