~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_rprev.c

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
Remove uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
#include "heapdef.h"
17
17
 
18
 
#include <string.h>
19
 
 
20
18
        /* Read prev record for key */
21
19
 
22
20
 
34
32
    heap_rb_param custom_arg;
35
33
 
36
34
    if (info->last_pos)
37
 
      pos = (unsigned char *)tree_search_next(&keyinfo->rb_tree,
38
 
                                              &info->last_pos,
39
 
                                              offsetof(TREE_ELEMENT, right),
40
 
                                              offsetof(TREE_ELEMENT, left));
 
35
      pos = tree_search_next(&keyinfo->rb_tree, &info->last_pos,
 
36
                             offsetof(TREE_ELEMENT, right),
 
37
                             offsetof(TREE_ELEMENT, left));
41
38
    else
42
39
    {
43
40
      custom_arg.keyseg = keyinfo->seg;
44
41
      custom_arg.key_length = keyinfo->length;
45
42
      custom_arg.search_flag = SEARCH_SAME;
46
 
      pos = (unsigned char *)tree_search_key(&keyinfo->rb_tree,
47
 
                                             info->lastkey, info->parents,
48
 
                                             &info->last_pos,
49
 
                                             info->last_find_flag,
50
 
                                             &custom_arg);
 
43
      pos = tree_search_key(&keyinfo->rb_tree, info->lastkey, info->parents, 
 
44
                           &info->last_pos, info->last_find_flag, &custom_arg);
51
45
    }
52
46
    if (pos)
53
47
    {