]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Change usage of ent->d_type != DT_DIR
authorJohn Ferlan <jferlan@redhat.com>
Wed, 14 Nov 2018 18:55:13 +0000 (13:55 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 14 Nov 2018 18:55:13 +0000 (13:55 -0500)
Fix a broken non-Linux build to use the !virFileIsDir instead

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/util/virresctrl.c

index f7481a10360f7980b04711db774bdcb3fdc498e7..ef5c668921df7e86286753debfba46976a2d24c7 100644 (file)
@@ -2693,7 +2693,7 @@ virResctrlMonitorGetStats(virResctrlMonitorPtr monitor,
          * "mon_L3_01" are two target directories for a two nodes system
          * with resource utilization data file for each node respectively.
          */
-        if (ent->d_type != DT_DIR)
+        if (!virFileIsDir(ent->d_name))
             continue;
 
         /* Looking for directory has a prefix 'mon_L' */