[PATCH] Make check_fc_host() and check_vport_capable() usable as rvalues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is needed on non linux ports using HAL in gather_scsi_host_cap.

Noticed while porting to kfreebsd.

O.k. to apply?
 -- Guido
---
 src/node_device/node_device_driver.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/node_device/node_device_driver.h b/src/node_device/node_device_driver.h
index 4721be4..e583c2b 100644
--- a/src/node_device/node_device_driver.h
+++ b/src/node_device/node_device_driver.h
@@ -78,8 +78,8 @@ int read_wwn_linux(int host, const char *file, char **wwn);
 
 # else  /* __linux__ */
 
-#  define check_fc_host(d)
-#  define check_vport_capable(d)
+#  define check_fc_host(d)                      (-1)
+#  define check_vport_capable(d)                (-1)
 #  define get_physical_function(sysfs_path, d)
 #  define get_virtual_functions(sysfs_path, d)
 #  define read_wwn(host, file, wwn)
-- 
1.7.4.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]