summary refs log tree commit diff
path: root/bin/png.h
diff options
context:
space:
mode:
Diffstat (limited to 'bin/png.h')
-rw-r--r--bin/png.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/png.h b/bin/png.h
index 15b6d13d..ec884395 100644
--- a/bin/png.h
+++ b/bin/png.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018  C. McEnroe <june@causal.agency>
+/* Copyright (C) 2018  June McEnroe <june@causal.agency>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
@@ -18,7 +18,6 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <sysexits.h>
 
 static inline uint32_t pngCRCTable(uint8_t n) {
 	static uint32_t table[256];
@@ -35,7 +34,7 @@ static inline uint32_t pngCRCTable(uint8_t n) {
 static uint32_t pngCRC;
 
 static inline void pngWrite(FILE *file, const uint8_t *ptr, uint32_t len) {
-	if (!fwrite(ptr, len, 1, file)) err(EX_IOERR, "pngWrite");
+	if (!fwrite(ptr, len, 1, file)) err(1, "pngWrite");
 	for (uint32_t i = 0; i < len; ++i) {
 		pngCRC = pngCRCTable(pngCRC ^ ptr[i]) ^ (pngCRC >> 8);
 	}