From 79938f3590be2be2cb4e8952a59440a79faa5a50 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Thu, 18 Feb 2016 11:47:42 -0800 Subject: Fixed const correctness of json_nice_escape(). --- upb/json/printer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'upb/json/printer.c') 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 "\\\\"; -- cgit v1.2.3