~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
432
432
    If this assumption will change, then we have to explictely add
433
433
    the other variables after the while loop
434
434
*/
435
 
void add_to_status(STATUS_VAR *to_var, STATUS_VAR *from_var)
 
435
void add_to_status(system_status_var *to_var, system_status_var *from_var)
436
436
{
437
437
  ulong *end= (ulong*) ((unsigned char*) to_var +
438
 
                        offsetof(STATUS_VAR, last_system_status_var) +
 
438
                        offsetof(system_status_var, last_system_status_var) +
439
439
                        sizeof(ulong));
440
440
  ulong *to= (ulong*) to_var, *from= (ulong*) from_var;
441
441
 
455
455
  NOTE
456
456
    This function assumes that all variables are long/ulong.
457
457
*/
458
 
void add_diff_to_status(STATUS_VAR *to_var, STATUS_VAR *from_var,
459
 
                        STATUS_VAR *dec_var)
 
458
void add_diff_to_status(system_status_var *to_var, system_status_var *from_var,
 
459
                        system_status_var *dec_var)
460
460
{
461
 
  ulong *end= (ulong*) ((unsigned char*) to_var + offsetof(STATUS_VAR,
 
461
  ulong *end= (ulong*) ((unsigned char*) to_var + offsetof(system_status_var,
462
462
                                                  last_system_status_var) +
463
463
                        sizeof(ulong));
464
464
  ulong *to= (ulong*) to_var, *from= (ulong*) from_var, *dec= (ulong*) dec_var;