~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/password.c

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:
78
78
void randominit(struct rand_struct *rand_st, uint32_t seed1, uint32_t seed2)
79
79
{                                               /* For mysql 3.21.# */
80
80
#ifdef HAVE_purify
81
 
  bzero((char*) rand_st,sizeof(*rand_st));      /* Avoid UMC varnings */
 
81
  memset((char*) rand_st, 0, sizeof(*rand_st));      /* Avoid UMC varnings */
82
82
#endif
83
83
  rand_st->max_value= 0x3FFFFFFFL;
84
84
  rand_st->max_value_dbl=(double) rand_st->max_value;