]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CryptoPkg/Crt: fix strcpy build on older VS compilers
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 20 Apr 2022 06:16:56 +0000 (14:16 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 20 Apr 2022 10:56:03 +0000 (10:56 +0000)
Drop 'restrict' keyword which older visual studio compiler
versions complain about.

Fixes: fab6285a73c4 ("CryptoPkg/CrtLibSupport: fix strcpy")
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c
CryptoPkg/Library/Include/CrtLibSupport.h

index 6fcbe5885e7bf3908133d7624783e8c8a4c635c1..c1fc33538f9b4cd05cd33fabb2bd54434e9e0b6f 100644 (file)
@@ -267,8 +267,8 @@ strcspn (
 \r
 char *\r
 strcpy (\r
-  char *restrict  strDest,\r
-  const char      *strSource\r
+  char        *strDest,\r
+  const char  *strSource\r
   )\r
 {\r
   AsciiStrCpyS (strDest, MAX_STRING_SIZE, strSource);\r
index bdc2654b6eefa4d2a13bd8a87ab72b1d69698840..e49060124ff6c2b7fecbd45d9a8e8673553c7ccd 100644 (file)
@@ -397,8 +397,8 @@ inet_pton   (
 \r
 char *\r
 strcpy (\r
-  char *restrict  strDest,\r
-  const char      *strSource\r
+  char        *strDest,\r
+  const char  *strSource\r
   );\r
 \r
 //\r