From 60c04c1eccc894abe1498c883f937354f8237a57 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 20 Jan 2024 19:38:14 +0100 Subject: Remove the ‘struct chars’ type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/grab.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/grab.c b/src/grab.c index 1b1588d..2a643f4 100644 --- a/src/grab.c +++ b/src/grab.c @@ -50,11 +50,6 @@ struct ops { size_t len, cap; }; -struct chars { - char *buf; - size_t len, cap; -}; - struct sv { char *p; size_t len; @@ -276,7 +271,10 @@ void grab(struct ops ops, FILE *stream, const char *filename) { size_t n; - struct chars chars = {0}; + struct { + char *buf; + size_t len, cap; + } chars = {0}; do { static_assert(sizeof(char) == 1, "sizeof(char) != 1; wtf?"); -- cgit v1.2.3