mirror of https://gitee.com/openkylin/libvirt.git
locking: fix build with older sanlock
../../src/locking/lock_driver_sanlock.c:106:17: error: incompatible pointer types
assigning to 'char **' from 'char *' [-Werror,-Wincompatible-pointer-types]
message = g_strdup_printf(_("sanlock error %d"), err);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fixes: b1d58418aa
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
48b68470c8
commit
54dd093837
|
@ -103,7 +103,7 @@ virLockManagerSanlockError(int err,
|
|||
#if HAVE_SANLOCK_STRERROR
|
||||
*message = g_strdup(sanlock_strerror(err));
|
||||
#else
|
||||
message = g_strdup_printf(_("sanlock error %d"), err);
|
||||
*message = g_strdup_printf(_("sanlock error %d"), err);
|
||||
#endif
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue