
5 Sep
2023
5 Sep
'23
10:21 a.m.
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@redhat.com> --- src/storage/storage_util.c | 75 ++++++++------------------------------ 1 file changed, 15 insertions(+), 60 deletions(-)
Reviewed-by: Ján Tomko <jtomko@redhat.com> Jano