Make the JSON code easier to analyze
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index 69d57b696ce3ab2b7782210012bcd4002a40433e..2c59c0f6c0f1fa990694b48a0e09ff168e406da5 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -950,7 +950,7 @@ void json_array_add_disk_util(struct disk_util_stat *dus,
        obj = json_create_object();
        json_array_add_value_object(array, obj);
 
-       json_object_add_value_string(obj, "name", dus->name);
+       json_object_add_value_string(obj, "name", (const char *)dus->name);
        json_object_add_value_int(obj, "read_ios", dus->s.ios[0]);
        json_object_add_value_int(obj, "write_ios", dus->s.ios[1]);
        json_object_add_value_int(obj, "read_merges", dus->s.merges[0]);