aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/json.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-18 01:59:39 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-18 09:48:17 +0200
commitb0963cf8e2b31ac6a60c314bad148cd93d8eaca1 (patch)
treea12e648fc0f072215741d2aaa805c207abb83c16 /src/json.h
parentprocess: preserve the exit code more (diff)
downloadcimple-b0963cf8e2b31ac6a60c314bad148cd93d8eaca1.tar.gz
cimple-b0963cf8e2b31ac6a60c314bad148cd93d8eaca1.zip
net: don't copy data in struct buf
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.h b/src/json.h
index 77bfde4..6ac30cb 100644
--- a/src/json.h
+++ b/src/json.h
@@ -19,7 +19,7 @@
log_err("JSON: %s failed\n", fn); \
} while (0)
-char *json_to_string(struct json_object *);
+const char *json_to_string(struct json_object *);
struct json_object *json_from_string(const char *);
int json_clone(const struct json_object *, const char *key, struct json_object **value);