~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/rpl_rli.cc

Replacing all bzero() calls with memset() calls and removing the bzero.c file.
Also removing check for bzero from the 'configure.ac' autoconf file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
  group_relay_log_name[0]= event_relay_log_name[0]=
49
49
    group_master_log_name[0]= 0;
50
50
  until_log_name[0]= ign_master_log_name_end[0]= 0;
51
 
  bzero((char*) &info_file, sizeof(info_file));
52
 
  bzero((char*) &cache_buf, sizeof(cache_buf));
 
51
  memset((char*) &info_file, 0, sizeof(info_file));
 
52
  memset((char*) &cache_buf, 0, sizeof(cache_buf));
53
53
  cached_charset_invalidate();
54
54
  pthread_mutex_init(&run_lock, MY_MUTEX_INIT_FAST);
55
55
  pthread_mutex_init(&data_lock, MY_MUTEX_INIT_FAST);
978
978
void Relay_log_info::cached_charset_invalidate()
979
979
{
980
980
  /* Full of zeroes means uninitialized. */
981
 
  bzero(cached_charset, sizeof(cached_charset));
 
981
  memset(cached_charset, 0, sizeof(cached_charset));
982
982
  return;
983
983
}
984
984