From 532bd4ec384b8e5764d97a62e5bd01fdbae6bd7a Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 20 Apr 2022 14:16:56 +0800 Subject: CryptoPkg/Crt: fix strcpy build on older VS compilers Drop 'restrict' keyword which older visual studio compiler versions complain about. Fixes: fab6285a73c4 ("CryptoPkg/CrtLibSupport: fix strcpy") Signed-off-by: Gerd Hoffmann Reviewed-by: Jiewen Yao --- CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c | 4 ++-- CryptoPkg/Library/Include/CrtLibSupport.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c b/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c index 6fcbe5885e..c1fc33538f 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c @@ -267,8 +267,8 @@ strcspn ( char * strcpy ( - char *restrict strDest, - const char *strSource + char *strDest, + const char *strSource ) { AsciiStrCpyS (strDest, MAX_STRING_SIZE, strSource); diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/Include/CrtLibSupport.h index bdc2654b6e..e49060124f 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -397,8 +397,8 @@ inet_pton ( char * strcpy ( - char *restrict strDest, - const char *strSource + char *strDest, + const char *strSource ); // -- cgit v1.2.3