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:
Ján Tomko 2019-11-13 09:51:45 +01:00
parent 48b68470c8
commit 54dd093837
1 changed files with 1 additions and 1 deletions

View File

@ -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 {