summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-04-08 15:44:35 -0400
committerJune McEnroe <june@causal.agency>2018-04-08 15:45:52 -0400
commit3935e94f01246cb101e19596a650e2cd6578078f (patch)
treefd32bf609bef013ed52f0809b4a2a1ef1f2e1dfb /bin
parentSleep in watch when a file is deleted (diff)
downloadsrc-3935e94f01246cb101e19596a650e2cd6578078f.tar.gz
src-3935e94f01246cb101e19596a650e2cd6578078f.zip
static_assert PNG header size in pngo and glitch
Diffstat (limited to 'bin')
-rw-r--r--bin/glitch.c1
-rw-r--r--bin/pngo.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/bin/glitch.c b/bin/glitch.c
index 22d82c13..71664115 100644
--- a/bin/glitch.c
+++ b/bin/glitch.c
@@ -127,6 +127,7 @@ static struct PACKED {
     uint8_t filter;
     uint8_t interlace;
 } header;
+static_assert(13 == sizeof(header), "header size");
 
 static size_t lineSize(void) {
     switch (header.color) {
diff --git a/bin/pngo.c b/bin/pngo.c
index 7ca2d949..0859f1d6 100644
--- a/bin/pngo.c
+++ b/bin/pngo.c
@@ -132,6 +132,7 @@ static struct PACKED {
     enum PACKED { ADAPTIVE } filter;
     enum PACKED { PROGRESSIVE, ADAM7 } interlace;
 } header;
+static_assert(13 == sizeof(header), "header size");
 
 static size_t lineSize(void) {
     switch (header.color) {
5:00 -0400'>2017-07-23Add nethackrcJune McEnroe 2017-07-23Remove useless setuid in briJune McEnroe Don't you think it would be better if the setuid bit only gave you permission to do it and didn't do it for you? 2017-07-23Clean up hnel a tiny bitJune McEnroe 2017-07-21Set window size in hnelJune McEnroe 2017-07-21Add hnelJune McEnroe 2017-07-19chmod 600 in dtchJune McEnroe