diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-20 19:38:14 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-20 19:38:14 +0100 |
commit | 60c04c1eccc894abe1498c883f937354f8237a57 (patch) | |
tree | d33435b8cdc6e2cda9e08e33ad136e8248ca49c4 /src/grab.c | |
parent | 99941fbee8af208a48db6d84616f1696e0852527 (diff) |
Remove the ‘struct chars’ type
Diffstat (limited to 'src/grab.c')
-rw-r--r-- | src/grab.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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?"); |