Commit 10b11254 authored by marko's avatar marko

branches/zip: inno_bcmp(): Remove this memcmp replacement.

srv0start.c does not (any longer) call memcmp.
srv_parse_megabytes(): Add a function comment.
parent 3174e395
...@@ -118,20 +118,9 @@ static char* srv_monitor_file_name; ...@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment