Commit ba051c35 authored by marko's avatar marko

branches/zip: Add const qualifiers to the dict_index_t* parameters of

rec_get_n_fields(), rec_offs_validate(), and rec_offs_make_valid().
parent 30fe641e
......@@ -120,7 +120,7 @@ rec_get_n_fields(
/*=============*/
/* out: number of data fields */
const rec_t* rec, /* in: physical record */
dict_index_t* index); /* in: record descriptor */
const dict_index_t* index); /* in: record descriptor */
/**********************************************************
The following function is used to get the number of records owned by the
previous directory record. */
......@@ -374,8 +374,9 @@ rec_offs_validate(
/*==============*/
/* out: TRUE if valid */
const rec_t* rec, /* in: record or NULL */
dict_index_t* index, /* in: record descriptor or NULL */
const ulint* offsets);/* in: array returned by rec_get_offsets() */
const dict_index_t* index, /* in: record descriptor or NULL */
const ulint* offsets);/* in: array returned by
rec_get_offsets() */
/****************************************************************
Updates debug data in offsets, in order to avoid bogus
rec_offs_validate() failures. */
......@@ -384,8 +385,9 @@ void
rec_offs_make_valid(
/*================*/
const rec_t* rec, /* in: record */
dict_index_t* index,/* in: record descriptor */
ulint* offsets);/* in: array returned by rec_get_offsets() */
const dict_index_t* index, /* in: record descriptor */
ulint* offsets);/* in: array returned by
rec_get_offsets() */
/****************************************************************
The following function is used to get the offset to the nth
......
......@@ -466,7 +466,7 @@ rec_get_n_fields(
/*=============*/
/* out: number of data fields */
const rec_t* rec, /* in: physical record */
dict_index_t* index) /* in: record descriptor */
const dict_index_t* index) /* in: record descriptor */
{
ut_ad(rec);
ut_ad(index);
......@@ -925,8 +925,9 @@ rec_offs_validate(
/*==============*/
/* out: TRUE if valid */
const rec_t* rec, /* in: record or NULL */
dict_index_t* index, /* in: record descriptor or NULL */
const ulint* offsets)/* in: array returned by rec_get_offsets() */
const dict_index_t* index, /* in: record descriptor or NULL */
const ulint* offsets)/* in: array returned by
rec_get_offsets() */
{
ulint i = rec_offs_n_fields(offsets);
ulint last = ULINT_MAX;
......@@ -980,7 +981,7 @@ rec_offs_make_valid(
/*================*/
const rec_t* rec __attribute__((unused)),
/* in: record */
dict_index_t* index __attribute__((unused)),
const dict_index_t* index __attribute__((unused)),
/* in: record descriptor */
ulint* offsets __attribute__((unused)))
/* in: array returned by rec_get_offsets() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment