From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Kirill Shcherbatov Subject: [PATCH v4 07/14] box: drop format const qualifier in *init_field_map Date: Thu, 11 Oct 2018 10:58:52 +0300 Message-Id: <0f49a5cf2cbfc0e26d6176e12436ec87d95e8bd4.1539244271.git.kshcherbatov@tarantool.org> In-Reply-To: References: In-Reply-To: References: To: tarantool-patches@freelists.org Cc: vdavydov.dev@gmail.com, Kirill Shcherbatov List-ID: Dropped format const qualifier in tuple_init_field_map routine as JSON tree iterators API require non-constant arguments. Part of #1012. --- src/box/tuple_format.c | 2 +- src/box/tuple_format.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/box/tuple_format.c b/src/box/tuple_format.c index 3e43cf7..a8aceef 100644 --- a/src/box/tuple_format.c +++ b/src/box/tuple_format.c @@ -452,7 +452,7 @@ tuple_format_dup(struct tuple_format *src) /** @sa declaration for details. */ int -tuple_init_field_map(const struct tuple_format *format, uint32_t *field_map, +tuple_init_field_map(struct tuple_format *format, uint32_t *field_map, const char *tuple) { if (format->field_count == 0) diff --git a/src/box/tuple_format.h b/src/box/tuple_format.h index a9a9c30..894620f 100644 --- a/src/box/tuple_format.h +++ b/src/box/tuple_format.h @@ -320,7 +320,7 @@ box_tuple_format_unref(box_tuple_format_t *format); * tuple + off_i = indexed_field_i; */ int -tuple_init_field_map(const struct tuple_format *format, uint32_t *field_map, +tuple_init_field_map(struct tuple_format *format, uint32_t *field_map, const char *tuple); /** -- 2.7.4