~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_rnext.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:
17
17
 
18
18
/* Read next record with the same key */
19
19
 
20
 
int heap_rnext(HP_INFO *info, unsigned char *record)
 
20
int heap_rnext(HP_INFO *info, uchar *record)
21
21
{
22
 
  unsigned char *pos;
 
22
  uchar *pos;
23
23
  HP_SHARE *share=info->s;
24
24
  HP_KEYDEF *keyinfo;
25
25
  
75
75
    if (pos)
76
76
    {
77
77
      memcpy(&pos, pos + (*keyinfo->get_key_length)(keyinfo, pos), 
78
 
             sizeof(unsigned char*));
 
78
             sizeof(uchar*));
79
79
      info->current_ptr = pos;
80
80
    }
81
81
    else
108
108
      my_errno=HA_ERR_END_OF_FILE;
109
109
    return(my_errno);
110
110
  }
111
 
  hp_extract_record(share, record, pos);
 
111
  memcpy(record,pos,(size_t) share->reclength);
112
112
  info->update=HA_STATE_AKTIV | HA_STATE_NEXT_FOUND;
113
113
  return(0);
114
114
}