diff options
| author | 2024-05-23 10:01:37 +0200 | |
|---|---|---|
| committer | 2024-05-23 10:01:37 +0200 | |
| commit | 8cf7559a7e21c5757455b948814d61e6e96f08f1 (patch) | |
| tree | c9a9d6d637977f97ebfc83ba36ae794fe5f9d8c1 /xs_json.h | |
| parent | Also return an application/ld+json object in webfinger. (diff) | |
| download | snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.tar.gz snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.tar.xz snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.zip | |
Added more const.
Diffstat (limited to 'xs_json.h')
| -rw-r--r-- | xs_json.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -76,7 +76,7 @@ static void _xs_json_dump(const xs_val *data, int level, int indent, FILE *f) | |||
| 76 | { | 76 | { |
| 77 | int c = 0; | 77 | int c = 0; |
| 78 | int ct = 0; | 78 | int ct = 0; |
| 79 | xs_val *v; | 79 | const xs_val *v; |
| 80 | 80 | ||
| 81 | switch (xs_type(data)) { | 81 | switch (xs_type(data)) { |
| 82 | case XSTYPE_NULL: | 82 | case XSTYPE_NULL: |
| @@ -116,7 +116,7 @@ static void _xs_json_dump(const xs_val *data, int level, int indent, FILE *f) | |||
| 116 | case XSTYPE_DICT: | 116 | case XSTYPE_DICT: |
| 117 | fputc('{', f); | 117 | fputc('{', f); |
| 118 | 118 | ||
| 119 | xs_str *k; | 119 | const xs_str *k; |
| 120 | 120 | ||
| 121 | while (xs_dict_next(data, &k, &v, &ct)) { | 121 | while (xs_dict_next(data, &k, &v, &ct)) { |
| 122 | if (c != 0) | 122 | if (c != 0) |