~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_repl.cc

Removing redundant use of casts in drizzled/ for memcmp(), memcpy(), memset(), and memmove().
Adding non-const version of String::ptr() to provide covariance on const:ness.

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 = !memcmp((uchar*) log_name, (uchar*) linfo->log_file_name,
214
 
                     log_name_len);
 
213
      result = !memcmp(log_name, linfo->log_file_name, log_name_len);
215
214
      pthread_mutex_unlock(&linfo->lock);
216
215
      if (result)
217
216
        break;
392
391
  pthread_mutex_t *log_lock;
393
392
  bool binlog_can_be_corrupted= false;
394
393
 
395
 
  memset((char*) &log, 0, sizeof(log));
 
394
  memset(&log, 0, sizeof(log));
396
395
  /* 
397
396
     heartbeat_period from @master_heartbeat_period user variable
398
397
  */