summaryrefslogtreecommitdiff
path: root/lib/membuf.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-03-18 16:20:48 +0100
committerTom Rini <trini@konsulko.com>2025-04-03 16:54:49 -0600
commitda8694a7d2cc9fdfd67e8a039ba1e70bdd543d0b (patch)
tree640b17d9978b8c5fa0ecdb606ecf9cfbeae46884 /lib/membuf.c
parent142a3cb63c81602ae4f48266a190ebceb483e536 (diff)
membuf: Minor code-style improvements
Show the start in end in the comment. Comment a missing variable in membuf_readline() and fix its line length. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/membuf.c')
-rw-r--r--lib/membuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/membuf.c b/lib/membuf.c
index 695d16d051e..f38ff36cb0b 100644
--- a/lib/membuf.c
+++ b/lib/membuf.c
@@ -287,7 +287,8 @@ int membuf_free(struct membuf *mb)
(mb->end - mb->start) - 1 - membuf_avail(mb);
}
-int membuf_readline(struct membuf *mb, char *str, int maxlen, int minch, bool must_fit)
+int membuf_readline(struct membuf *mb, char *str, int maxlen, int minch,
+ bool must_fit)
{
int len; /* number of bytes read (!= string length) */
char *s, *end;