mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
branches/zip: inno_bcmp(): Remove this memcmp replacement.
srv0start.c does not (any longer) call memcmp. srv_parse_megabytes(): Add a function comment.
This commit is contained in:
parent
3174e395f3
commit
10b11254a8
1 changed files with 3 additions and 14 deletions
|
@ -118,20 +118,9 @@ static char* srv_monitor_file_name;
|
|||
#define SRV_MAX_N_PENDING_SYNC_IOS 100
|
||||
|
||||
|
||||
/* Avoid warnings when using purify */
|
||||
|
||||
#ifdef HAVE_purify
|
||||
static int inno_bcmp(register const char *s1, register const char *s2,
|
||||
register uint len)
|
||||
{
|
||||
while ((len-- != 0) && (*s1++ == *s2++))
|
||||
;
|
||||
|
||||
return(len + 1);
|
||||
}
|
||||
#define memcmp(A,B,C) inno_bcmp((A),(B),(C))
|
||||
#endif
|
||||
|
||||
/*************************************************************************
|
||||
Convert a numeric string that optionally ends in G or M, to a number
|
||||
containing megabytes. */
|
||||
static
|
||||
char*
|
||||
srv_parse_megabytes(
|
||||
|
|
Loading…
Add table
Reference in a new issue