~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/thr_lock.c

  • Committer: Mats Kindahl
  • Date: 2008-08-04 20:38:04 UTC
  • mto: (264.1.19 codestyle)
  • mto: This revision was merged to the branch mainline in revision 266.
  • Revision ID: mats@mysql.com-20080804203804-8tum4b8fv2qnitj7
Removing redundant use of casts in mysys for memcmp(), memcpy(), memset(), and memmove().

Show diffs side-by-side

added added

removed removed

Lines of Context:
299
299
 
300
300
void thr_lock_init(THR_LOCK *lock)
301
301
{
302
 
  memset((char*) lock, 0, sizeof(*lock));
 
302
  memset(lock, 0, sizeof(*lock));
303
303
  VOID(pthread_mutex_init(&lock->mutex,MY_MUTEX_INIT_FAST));
304
304
  lock->read.last= &lock->read.data;
305
305
  lock->read_wait.last= &lock->read_wait.data;