]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix build on non-Linux platforms
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 21 Jul 2014 17:26:00 +0000 (21:26 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 21 Jul 2014 17:26:00 +0000 (21:26 +0400)
commitb5f57be2a2e9741b57d064bfaee92d9726bf9856
treea35b7332a73e0f00069ec8e978478337a3af3c50
parentea37fb34a95df2295538b51122dd1316c765c41b
Fix build on non-Linux platforms

Commit ef48a1b introduced virFindSCSIHostByPCI for Linux and
a stub for other platforms that returns -1 while the function
should return 'char *', so use 'return NULL' instead.

Commit fbd91d4 introduced virReadSCSIUniqueId with the third
argument 'int *result', however the stub for non-Linux patform
uses 'unsigned int *result', so change it to 'int *result'.

Pushed under the build breaker rule.
src/util/virutil.c