~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_cache.c

  • Committer: Monty Taylor
  • Date: 2008-09-22 23:53:43 UTC
  • mto: This revision was merged to the branch mainline in revision 417.
  • Revision ID: monty@inaugust.com-20080922235343-ihqvp6g9k1mtzxmc
Renamed max/min.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
      (my_off_t) (info->read_end - info->request_pos))
61
61
  {
62
62
    in_buff_pos=info->request_pos+(uint) offset;
63
 
    in_buff_length= min(length, (size_t) (info->read_end-in_buff_pos));
 
63
    in_buff_length= cmin(length, (size_t) (info->read_end-in_buff_pos));
64
64
    memcpy(buff,info->request_pos+(uint) offset,(size_t) in_buff_length);
65
65
    if (!(length-=in_buff_length))
66
66
      return(0);