On a Tuesday in 2023, Michal Privoznik wrote:
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(a)redhat.com>
---
src/storage/storage_util.c | 75 ++++++++------------------------------
1 file changed, 15 insertions(+), 60 deletions(-)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano