summaryrefslogtreecommitdiff
path: root/tools/stadium.c
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-09-02 00:21:10 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-09-02 00:21:10 -0400
commit313deab55253ee49ef3872491f6805a03b5ea36b (patch)
tree855534742230d659350dd72afded9a353fb44ccd /tools/stadium.c
parent8f88e04401083d847d8f234645a91067c9c70e1b (diff)
Rewrite tool png_dimensions.c, and start using common.h more
Diffstat (limited to 'tools/stadium.c')
-rw-r--r--tools/stadium.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/stadium.c b/tools/stadium.c
index 479cccdfa..51b671f20 100644
--- a/tools/stadium.c
+++ b/tools/stadium.c
@@ -1,10 +1,3 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdint.h>
-#include <stdbool.h>
-#include <getopt.h>
-
#include "common.h"
// The Game Boy cartridge header stores a global checksum at 0x014E-0x014F
@@ -160,7 +153,7 @@ int main(int argc, char *argv[]) {
}
char *filename = argv[0];
- int filesize;
+ long filesize;
uint8_t *file = read_u8(filename, &filesize);
calculate_checksums(file, filesize, base);
write_u8(filename, file, filesize);