io: path: update to_string callback to use b_stream
This commit is contained in:
@@ -18,7 +18,7 @@ struct b_path {
|
||||
};
|
||||
|
||||
static void path_release(struct b_object *obj);
|
||||
static void path_to_string(struct b_object *obj, struct b_stringstream *out);
|
||||
static void path_to_string(struct b_object *obj, struct b_stream *out);
|
||||
|
||||
static struct b_object_type path_type = {
|
||||
.t_name = "corelib::path",
|
||||
@@ -296,9 +296,9 @@ void path_release(struct b_object *obj)
|
||||
b_string_release(path->pathstr);
|
||||
}
|
||||
|
||||
void path_to_string(struct b_object *obj, struct b_stringstream *out)
|
||||
void path_to_string(struct b_object *obj, struct b_stream *out)
|
||||
{
|
||||
struct b_path *path = (struct b_path *)obj;
|
||||
|
||||
b_stringstream_add(out, b_string_ptr(path->pathstr));
|
||||
b_stream_write_string(out, b_string_ptr(path->pathstr), NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user