mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +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
|
#define SRV_MAX_N_PENDING_SYNC_IOS 100
|
||||||
|
|
||||||
|
|
||||||
/* Avoid warnings when using purify */
|
/*************************************************************************
|
||||||
|
Convert a numeric string that optionally ends in G or M, to a number
|
||||||
#ifdef HAVE_purify
|
containing megabytes. */
|
||||||
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
|
|
||||||
|
|
||||||
static
|
static
|
||||||
char*
|
char*
|
||||||
srv_parse_megabytes(
|
srv_parse_megabytes(
|
||||||
|
|
Loading…
Add table
Reference in a new issue