~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_repl.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:
210
210
    if ((linfo = tmp->current_linfo))
211
211
    {
212
212
      pthread_mutex_lock(&linfo->lock);
213
 
      result = !bcmp((uchar*) log_name, (uchar*) linfo->log_file_name,
 
213
      result = !memcmp((uchar*) log_name, (uchar*) linfo->log_file_name,
214
214
                     log_name_len);
215
215
      pthread_mutex_unlock(&linfo->lock);
216
216
      if (result)