summaryrefslogtreecommitdiff
path: root/upb/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb/msg.c')
-rw-r--r--upb/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/upb/msg.c b/upb/msg.c
index 4125d4c..29ba2e1 100644
--- a/upb/msg.c
+++ b/upb/msg.c
@@ -158,8 +158,8 @@ void upb_msg_addunknown(upb_msg *msg, const char *data, size_t len) {
in->unknown_len += len;
}
-const char *upb_msg_getunknown(upb_msg *msg, size_t *len) {
- upb_msg_internal* in = upb_msg_getinternal(msg);
+const char *upb_msg_getunknown(const upb_msg *msg, size_t *len) {
+ const upb_msg_internal* in = upb_msg_getinternal_const(msg);
*len = in->unknown_len;
return in->unknown;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback