struct index_mm_node {
struct index_mm *idx;
- const char *prefix; /* mmape'd value */
+ const char *prefix; /* mmap'ed value */
struct index_mm_value_array values;
unsigned char first;
unsigned char last;
const uint8_t *addr = *(const uint8_t **)p;
uint32_t v;
- /* addr may be unalined to uint32_t */
+ /* addr may be unaligned to uint32_t */
v = get_unaligned((const uint32_t *)addr);
*p = addr + sizeof(uint32_t);
*
* Returns the value of the first match
*
- * The recursive functions free their node argument (using index_close).
+ * The recursive functions free their node argument (using index_mm_free_node).
*/
char *index_mm_search(struct index_mm *idx, const char *key)
{