summaryrefslogtreecommitdiff
path: root/upb/json/printer.c
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2016-02-18 11:47:42 -0800
committerJosh Haberman <jhaberman@gmail.com>2016-02-18 11:47:42 -0800
commit79938f3590be2be2cb4e8952a59440a79faa5a50 (patch)
tree4363d43ee0d07d448aac1bf927dc5e1344226981 /upb/json/printer.c
parent4cae251fb39ae09089e899bcf264dbde62dc6a12 (diff)
Fixed const correctness of json_nice_escape().
Diffstat (limited to 'upb/json/printer.c')
-rw-r--r--upb/json/printer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/json/printer.c b/upb/json/printer.c
index 0db7b80..c290efe 100644
--- a/upb/json/printer.c
+++ b/upb/json/printer.c
@@ -85,7 +85,7 @@ UPB_INLINE bool is_json_escaped(char c) {
return uc < kControlCharLimit || uc == '"' || uc == '\\';
}
-UPB_INLINE char* json_nice_escape(char c) {
+UPB_INLINE const char* json_nice_escape(char c) {
switch (c) {
case '"': return "\\\"";
case '\\': return "\\\\";
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback