~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/rpl_rli.cc

Removing deprecated functions from code and replacing them with C99 equivalents:
- replacing bcmp() calls with memcmp() calls
- replacing bfill() with memset()
- replacing bmove() and bcopy() with memcpy() or memmove()

The function memcpy_fixed() was apparantly introduced to fix a problem in gcc on
Alpha, but since it is not used consistently, it is likely not necessary any more.
It was replaced with memcpy().

Show diffs side-by-side

added added

removed removed

Lines of Context:
985
985
 
986
986
bool Relay_log_info::cached_charset_compare(char *charset) const
987
987
{
988
 
  if (bcmp((uchar*) cached_charset, (uchar*) charset,
989
 
           sizeof(cached_charset)))
 
988
  if (memcmp((uchar*) cached_charset, (uchar*) charset,
 
989
             sizeof(cached_charset)))
990
990
  {
991
991
    memcpy(const_cast<char*>(cached_charset), charset, sizeof(cached_charset));
992
992
    return(1);