summaryrefslogtreecommitdiffhomepage
path: root/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ast.c b/ast.c
index bba1316..e20682c 100644
--- a/ast.c
+++ b/ast.c
@@ -108,7 +108,7 @@ double_rounded_to_string(struct json_object *v, struct printbuf *pb, int level,
}
struct json_object *
-json_object_new_double_rounded(double v)
+ut_new_double(double v)
{
struct json_object *d = json_object_new_double(v);
@@ -124,7 +124,8 @@ null_obj_to_string(struct json_object *v, struct printbuf *pb, int level, int fl
}
struct json_object *
-json_object_new_null_obj(void) {
+ut_new_null(void)
+{
struct json_object *d = json_object_new_boolean(false);
json_object_set_serializer(d, null_obj_to_string, NULL, NULL);