~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/default.c

Removing deprecated functions from code and replacing them with C99 equivalents:
- replacing bcmp() calls with memcmp() calls
- replacing bfill() with memset()
- replacing bmove() and bcopy() with memcpy() or memmove()

The function memcpy_fixed() was apparantly introduced to fix a problem in gcc on
Alpha, but since it is not used consistently, it is likely not necessary any more.
It was replaced with memcpy().

Show diffs side-by-side

added added

removed removed

Lines of Context:
475
475
void free_defaults(char **argv)
476
476
{
477
477
  MEM_ROOT ptr;
478
 
  memcpy_fixed((char*) &ptr,(char *) argv - sizeof(ptr), sizeof(ptr));
 
478
  memcpy((char*) &ptr,(char *) argv - sizeof(ptr), sizeof(ptr));
479
479
  free_root(&ptr,MYF(0));
480
480
}
481
481