aboutsummaryrefslogtreecommitdiff
path: root/src/grab.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-20 19:38:14 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-20 19:38:14 +0100
commit60c04c1eccc894abe1498c883f937354f8237a57 (patch)
treed33435b8cdc6e2cda9e08e33ad136e8248ca49c4 /src/grab.c
parent99941fbee8af208a48db6d84616f1696e0852527 (diff)
Remove the ‘struct chars’ type
Diffstat (limited to 'src/grab.c')
-rw-r--r--src/grab.c10
1 files 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?");