From be023cf57d763ff5b17dbb2a3afec156ca54a65d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 31 Oct 2019 23:14:05 +0100 Subject: Fixed several warnings --- src/bootloader/make_initrd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/bootloader') diff --git a/src/bootloader/make_initrd.c b/src/bootloader/make_initrd.c index d7e0487..2ee4716 100644 --- a/src/bootloader/make_initrd.c +++ b/src/bootloader/make_initrd.c @@ -1,4 +1,6 @@ #include +#include +#include struct initrd_header { unsigned char magic; @@ -10,7 +12,7 @@ struct initrd_header { int main(char argc, char **argv) { int nheaders = (argc - 1) / 2; struct initrd_header headers[64]; - printf("size of header: %d\n", sizeof(struct initrd_header)); + printf("size of header: %d\n", (int) sizeof(struct initrd_header)); unsigned int off = sizeof(struct initrd_header) * 64 + sizeof(int); for (int i = 0; i < nheaders; i++) { -- cgit v1.2.3