aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/json.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-18 00:48:34 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-18 00:48:34 +0200
commitc68eeb9946a6e6aee59e221ee279463769331920 (patch)
tree441062e6fca09af52862814eba9ca5115057ee4e /src/json.c
parentswitch to JSON-RPC as message format (diff)
downloadcimple-c68eeb9946a6e6aee59e221ee279463769331920.tar.gz
cimple-c68eeb9946a6e6aee59e221ee279463769331920.zip
net: remove unused buf_* routines
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index a01aae6..3f22b39 100644
--- a/src/json.c
+++ b/src/json.c
@@ -75,7 +75,7 @@ int json_send(struct json_object *obj, int fd)
return -1;
struct buf *buf = NULL;
- ret = buf_pack_strings(&buf, 1, &str);
+ ret = buf_create_from_string(&buf, str);
free((char *)str);
if (ret < 0)
return ret;