~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/my_time.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:
438
438
                                       MYSQL_TIMESTAMP_DATETIME));
439
439
 
440
440
err:
441
 
  bzero((char*) l_time, sizeof(*l_time));
 
441
  memset((char*) l_time, 0, sizeof(*l_time));
442
442
  return(MYSQL_TIMESTAMP_ERROR);
443
443
}
444
444
 
561
561
    {
562
562
      bmove_upp((uchar*) (date+4), (uchar*) (date+state),
563
563
                sizeof(long)*(state-1));
564
 
      bzero((uchar*) date, sizeof(long)*(4-state));
 
564
      memset((uchar*) date, 0, sizeof(long)*(4-state));
565
565
    }
566
566
    else
567
 
      bzero((uchar*) (date+state), sizeof(long)*(4-state));
 
567
      memset((uchar*) (date+state), 0, sizeof(long)*(4-state));
568
568
  }
569
569
 
570
570
fractional:
984
984
 
985
985
void set_zero_time(MYSQL_TIME *tm, enum enum_mysql_timestamp_type time_type)
986
986
{
987
 
  bzero((void*) tm, sizeof(*tm));
 
987
  memset((void*) tm, 0, sizeof(*tm));
988
988
  tm->time_type= time_type;
989
989
}
990
990
 
1095
1095
  long part1,part2;
1096
1096
 
1097
1097
  *was_cut= 0;
1098
 
  bzero((char*) time_res, sizeof(*time_res));
 
1098
  memset((char*) time_res, 0, sizeof(*time_res));
1099
1099
  time_res->time_type=MYSQL_TIMESTAMP_DATE;
1100
1100
 
1101
1101
  if (nr == 0LL || nr >= 10000101000000LL)