aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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?");