summaryrefslogtreecommitdiff
path: root/upb/bytestream.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb/bytestream.c')
-rw-r--r--upb/bytestream.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/upb/bytestream.c b/upb/bytestream.c
index a242df4..8473f33 100644
--- a/upb/bytestream.c
+++ b/upb/bytestream.c
@@ -7,11 +7,13 @@
#include "upb/bytestream.h"
-#include <stddef.h>
#include <stdlib.h>
#include <string.h>
-char *upb_byteregion_strdup(const struct _upb_byteregion *r) {
+
+/* upb_byteregion *************************************************************/
+
+char *upb_byteregion_strdup(const upb_byteregion *r) {
char *ret = malloc(upb_byteregion_len(r) + 1);
upb_byteregion_copyall(r, ret);
ret[upb_byteregion_len(r)] = '\0';
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback