ac/msgpack: make fixstrs a const char

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24371>
This commit is contained in:
Friedrich Vock
2023-08-03 12:33:21 +02:00
committed by Marge Bot
parent ef4cb2431d
commit d5f1c9fb4b
2 changed files with 2 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ void ac_msgpack_add_fixarray_op(struct ac_msgpack *msgpack, uint32_t n)
}
}
void ac_msgpack_add_fixstr(struct ac_msgpack *msgpack, char *str)
void ac_msgpack_add_fixstr(struct ac_msgpack *msgpack, const char *str)
{
uint32_t n;

View File

@@ -19,7 +19,7 @@ int ac_msgpack_resize_if_required(struct ac_msgpack *msgpack,
uint32_t data_size);
void ac_msgpack_add_fixmap_op(struct ac_msgpack *msgpack, uint32_t n);
void ac_msgpack_add_fixarray_op(struct ac_msgpack *msgpack, uint32_t n);
void ac_msgpack_add_fixstr(struct ac_msgpack *msgpack, char *str);
void ac_msgpack_add_fixstr(struct ac_msgpack *msgpack, const char *str);
void ac_msgpack_add_uint(struct ac_msgpack *msgpack, uint64_t val);
void ac_msgpack_add_int(struct ac_msgpack *msgpack, int64_t val);