From 56e35ae07d9ee79d122c450091589a38869c1ee8 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Fri, 27 Jun 2025 21:51:39 +0100 Subject: [PATCH] io: path: update to_string callback to use b_stream --- io/sys/darwin/path.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/io/sys/darwin/path.c b/io/sys/darwin/path.c index 55007e7..43c4048 100644 --- a/io/sys/darwin/path.c +++ b/io/sys/darwin/path.c @@ -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); }