mirror of https://github.com/acidanthera/audk.git
OvmfPkg/XenBusDxe: eliminate AsciiStrCpy() calls
AsciiStrCpy() is deprecated / disabled under the DISABLE_NEW_DEPRECATED_INTERFACES feature test macro. Cc: Anthony PERARD <anthony.perard@citrix.com> Cc: Gary Lin <glin@suse.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=166 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Gary Lin <glin@suse.com> Tested-by: Gary Lin <glin@suse.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
08bcaf20b1
commit
02c6760c96
|
@ -1298,11 +1298,8 @@ XenStoreTransactionEnd (
|
||||||
{
|
{
|
||||||
CHAR8 AbortStr[2];
|
CHAR8 AbortStr[2];
|
||||||
|
|
||||||
if (Abort) {
|
AbortStr[0] = Abort ? 'F' : 'T';
|
||||||
AsciiStrCpy (AbortStr, "F");
|
AbortStr[1] = '\0';
|
||||||
} else {
|
|
||||||
AsciiStrCpy (AbortStr, "T");
|
|
||||||
}
|
|
||||||
|
|
||||||
return XenStoreSingle (Transaction, XS_TRANSACTION_END, AbortStr, NULL, NULL);
|
return XenStoreSingle (Transaction, XS_TRANSACTION_END, AbortStr, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue