summaryrefslogtreecommitdiff
path: root/Cryptlib/Include/CrtLibSupport.h
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2017-04-07 17:14:09 +0800
committerPeter Jones <pjones@redhat.com>2017-04-11 10:42:19 -0400
commit9bc647e2b23bcfd69a0077c0717fbc454c919a57 (patch)
treeda0d905c89be95f2ff2de253aa256c7267e7fc70 /Cryptlib/Include/CrtLibSupport.h
parentae75df6232ad30f3e8736e9449692d58a7439260 (diff)
downloadefi-boot-shim-9bc647e2b23bcfd69a0077c0717fbc454c919a57.tar.gz
efi-boot-shim-9bc647e2b23bcfd69a0077c0717fbc454c919a57.zip
Cryptlib: implement strcmp() and strcasecmp()
strcmp() and strcasecmp() are widely used in openssl. Implement those two functions to eliminate the gcc warnings and the potential crash. Signed-off-by: Gary Lin <glin@suse.com>
Diffstat (limited to 'Cryptlib/Include/CrtLibSupport.h')
-rw-r--r--Cryptlib/Include/CrtLibSupport.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Cryptlib/Include/CrtLibSupport.h b/Cryptlib/Include/CrtLibSupport.h
index 42c056f0..6312e5cb 100644
--- a/Cryptlib/Include/CrtLibSupport.h
+++ b/Cryptlib/Include/CrtLibSupport.h
@@ -374,7 +374,6 @@ extern FILE *stdout;
#define strncpy(strDest,strSource,count) AsciiStrnCpy(strDest,strSource,(UINTN)count)
#define strcat(strDest,strSource) AsciiStrCat(strDest,strSource)
#define strchr(str,ch) (char *)(ScanMem8((CHAR8 *)str,AsciiStrSize((CHAR8 *)str),ch))
-#define strcmp(string1,string2) strcmpa((CHAR8 *)string1,(CHAR8 *)string2)
#define strncmp(string1,string2,count) (int)(AsciiStrnCmp(string1,string2,(UINTN)(count)))
#define localtime(timer) NULL
#define assert(expression)