~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_base.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:
493
493
                       &key_buff, old_share->table_cache_key.length,
494
494
                       NULL))
495
495
  {
496
 
    bzero((char*) share, sizeof(*share));
 
496
    memset((char*) share, 0, sizeof(*share));
497
497
    share->set_table_cache_key(key_buff, old_share->table_cache_key.str,
498
498
                               old_share->table_cache_key.length);
499
499
    share->tmp_table= INTERNAL_TMP_TABLE;       // for intern_close_table()
536
536
  TABLE_LIST table_list;
537
537
 
538
538
  VOID(pthread_mutex_lock(&LOCK_open));
539
 
  bzero((char*) &table_list,sizeof(table_list));
 
539
  memset((char*) &table_list, 0, sizeof(table_list));
540
540
  start_list= &open_list;
541
541
  open_list=0;
542
542
 
839
839
  bool result= false;
840
840
  assert(thd);
841
841
 
842
 
  bzero(&tmp, sizeof(TABLE_LIST));
 
842
  memset(&tmp, 0, sizeof(TABLE_LIST));
843
843
 
844
844
  if (!have_lock)
845
845
    VOID(pthread_mutex_lock(&LOCK_open));
2541
2541
    sql_print_error("Table %s had a open data handler in reopen_table",
2542
2542
                    table->alias);
2543
2543
#endif
2544
 
  bzero((char*) &table_list, sizeof(TABLE_LIST));
 
2544
  memset(&table_list, 0, sizeof(TABLE_LIST));
2545
2545
  table_list.db=         table->s->db.str;
2546
2546
  table_list.table_name= table->s->table_name.str;
2547
2547
  table_list.table=      table;
5729
5729
    ref_pointer_array
5730
5730
  */
5731
5731
  if (ref_pointer_array)
5732
 
    bzero(ref_pointer_array, sizeof(Item *) * fields.elements);
 
5732
    memset(ref_pointer_array, 0, sizeof(Item *) * fields.elements);
5733
5733
 
5734
5734
  Item **ref= ref_pointer_array;
5735
5735
  thd->lex->current_select->cur_pos_in_select_list= 0;