From a66c9e6e1378e4195f3201c5f558c8440ffca950 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 17 Jan 2025 14:43:22 -0400 Subject: [PATCH] MT#55283 update return type Change-Id: Id536bea91bd34287c6c318c5edf00c4dcf017846 --- lib/streambuf.c | 2 +- lib/streambuf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/streambuf.c b/lib/streambuf.c index 4b6c0bec6..e3f36e17a 100644 --- a/lib/streambuf.c +++ b/lib/streambuf.c @@ -177,7 +177,7 @@ char *streambuf_getline(struct streambuf *b) { return s; } -unsigned int streambuf_bufsize(struct streambuf *b) { +size_t streambuf_bufsize(struct streambuf *b) { return b->buf->len; } diff --git a/lib/streambuf.h b/lib/streambuf.h index e47810b5d..ea4919936 100644 --- a/lib/streambuf.h +++ b/lib/streambuf.h @@ -41,7 +41,7 @@ void streambuf_destroy(struct streambuf *); int streambuf_writeable(struct streambuf *); int streambuf_readable(struct streambuf *); char *streambuf_getline(struct streambuf *); -unsigned int streambuf_bufsize(struct streambuf *); +size_t streambuf_bufsize(struct streambuf *); void streambuf_printf(struct streambuf *, const char *, ...) __attribute__ ((format (printf, 2, 3))); void streambuf_vprintf(struct streambuf *, const char *, va_list); void streambuf_write(struct streambuf *, const char *, unsigned int);