~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.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:
4200
4200
  mysqld_user= mysqld_chroot= opt_init_file= opt_bin_logname = 0;
4201
4201
  errmesg= 0;
4202
4202
  opt_mysql_tmpdir= my_bind_addr_str= NullS;
4203
 
  memset((uchar*) &mysql_tmpdir_list, 0, sizeof(mysql_tmpdir_list));
4204
 
  memset((char *) &global_status_var, 0, sizeof(global_status_var));
 
4203
  memset(&mysql_tmpdir_list, 0, sizeof(mysql_tmpdir_list));
 
4204
  memset(&global_status_var, 0, sizeof(global_status_var));
4205
4205
  key_map_full.set_all();
4206
4206
 
4207
4207
  /* Character sets */
5002
5002
  add_to_status(&global_status_var, &thd->status_var);
5003
5003
 
5004
5004
  /* Reset thread's status variables */
5005
 
  memset((uchar*) &thd->status_var, 0, sizeof(thd->status_var));
 
5005
  memset(&thd->status_var, 0, sizeof(thd->status_var));
5006
5006
 
5007
5007
  /* Reset some global variables */
5008
5008
  reset_status_vars();