]> xenbits.xensource.com Git - libvirt.git/commitdiff
Make check_fc_host() and check_vport_capable() usable as rvalues
authorGuido Günther <agx@sigxcpu.org>
Thu, 31 Mar 2011 20:40:34 +0000 (22:40 +0200)
committerGuido Günther <agx@sigxcpu.org>
Fri, 1 Apr 2011 09:23:51 +0000 (11:23 +0200)
as needed on non linux ports using HAL.

src/node_device/node_device_driver.h

index 4721be4454242fec1201c2ba2d84d27cea0514c5..e583c2bc68603cc0d2fab19c0ba36844fdc54b12 100644 (file)
@@ -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)