summaryrefslogtreecommitdiff
path: root/io_buffer.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2025-03-31 09:28:16 -0400
committerPeter Zhu <peter@peterzhu.ca>2025-03-31 16:37:44 -0400
commit6d70847e27ccd3a92d8a22907531b8e1a38ca546 (patch)
tree4f03ba95b9750a990127480066904a86ea6f13bb /io_buffer.c
parent0fad0ce35ca0160288a64a8cc49e6dae1b199821 (diff)
Make free, memsize functions of IO::Buffer static
They are not used outside of io_buffer.c, so we can make them static.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13022
Diffstat (limited to 'io_buffer.c')
-rw-r--r--io_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_buffer.c b/io_buffer.c
index 140571bdbc..0534999319 100644
--- a/io_buffer.c
+++ b/io_buffer.c
@@ -272,7 +272,7 @@ io_buffer_free(struct rb_io_buffer *buffer)
#endif
}
-void
+static void
rb_io_buffer_type_free(void *_buffer)
{
struct rb_io_buffer *buffer = _buffer;
@@ -280,7 +280,7 @@ rb_io_buffer_type_free(void *_buffer)
io_buffer_free(buffer);
}
-size_t
+static size_t
rb_io_buffer_type_size(const void *_buffer)
{
const struct rb_io_buffer *buffer = _buffer;