diff options
| author | Gary Lin <glin@suse.com> | 2017-04-07 17:14:09 +0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2017-04-11 10:42:19 -0400 |
| commit | 9bc647e2b23bcfd69a0077c0717fbc454c919a57 (patch) | |
| tree | da0d905c89be95f2ff2de253aa256c7267e7fc70 /Cryptlib/Include | |
| parent | ae75df6232ad30f3e8736e9449692d58a7439260 (diff) | |
| download | efi-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')
| -rw-r--r-- | Cryptlib/Include/CrtLibSupport.h | 1 |
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)
|
