~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/drizzled.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:
1104
1104
    struct addrinfo hints;
1105
1105
    int error;
1106
1106
 
1107
 
    bzero(&hints, sizeof (hints));
 
1107
    memset(&hints, 0, sizeof (hints));
1108
1108
    hints.ai_flags= AI_PASSIVE;
1109
1109
    hints.ai_socktype= SOCK_STREAM;
1110
1110
    hints.ai_family= AF_UNSPEC;
4285
4285
  mysqld_user= mysqld_chroot= opt_init_file= opt_bin_logname = 0;
4286
4286
  errmesg= 0;
4287
4287
  opt_mysql_tmpdir= my_bind_addr_str= NullS;
4288
 
  bzero((uchar*) &mysql_tmpdir_list, sizeof(mysql_tmpdir_list));
4289
 
  bzero((char *) &global_status_var, sizeof(global_status_var));
 
4288
  memset((uchar*) &mysql_tmpdir_list, 0, sizeof(mysql_tmpdir_list));
 
4289
  memset((char *) &global_status_var, 0, sizeof(global_status_var));
4290
4290
  key_map_full.set_all();
4291
4291
 
4292
4292
  /* Character sets */
4612
4612
    {
4613
4613
      struct addrinfo *res_lst, hints;    
4614
4614
 
4615
 
      bzero(&hints, sizeof(struct addrinfo));
 
4615
      memset(&hints, 0, sizeof(struct addrinfo));
4616
4616
      hints.ai_socktype= SOCK_STREAM;
4617
4617
      hints.ai_protocol= IPPROTO_TCP;
4618
4618
 
5134
5134
  add_to_status(&global_status_var, &thd->status_var);
5135
5135
 
5136
5136
  /* Reset thread's status variables */
5137
 
  bzero((uchar*) &thd->status_var, sizeof(thd->status_var));
 
5137
  memset((uchar*) &thd->status_var, 0, sizeof(thd->status_var));
5138
5138
 
5139
5139
  /* Reset some global variables */
5140
5140
  reset_status_vars();