~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_rprev.c

  • Committer: Monty Taylor
  • Date: 2008-08-04 19:37:18 UTC
  • mto: (261.2.2 codestyle)
  • mto: This revision was merged to the branch mainline in revision 262.
  • Revision ID: monty@inaugust.com-20080804193718-f0rz13uli4429ozb
Changed gettext_noop() to N_()

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
        /* Read prev record for key */
19
19
 
20
20
 
21
 
int heap_rprev(HP_INFO *info, unsigned char *record)
 
21
int heap_rprev(HP_INFO *info, uchar *record)
22
22
{
23
 
  unsigned char *pos;
 
23
  uchar *pos;
24
24
  HP_SHARE *share=info->s;
25
25
  HP_KEYDEF *keyinfo;
26
26
 
46
46
    if (pos)
47
47
    {
48
48
      memcpy(&pos, pos + (*keyinfo->get_key_length)(keyinfo, pos),
49
 
             sizeof(unsigned char*));
 
49
             sizeof(uchar*));
50
50
      info->current_ptr = pos;
51
51
    }
52
52
    else
76
76
      my_errno=HA_ERR_END_OF_FILE;
77
77
    return(my_errno);
78
78
  }
79
 
  hp_extract_record(share, record, pos);
 
79
  memcpy(record,pos,(size_t) share->reclength);
80
80
  info->update=HA_STATE_AKTIV | HA_STATE_PREV_FOUND;
81
81
  return(0);
82
82
}