mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 14:05:18 +00:00
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: b1d58418aa5051c7aafa4519b332007e7c73c261 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…
x
Reference in New Issue
Block a user