aboutsummaryrefslogtreecommitdiff
path: root/src/bootloader/make_initrd.c
diff options
context:
space:
mode:
authorMarvin Borner2019-10-31 23:14:05 +0100
committerMarvin Borner2019-10-31 23:14:05 +0100
commitbe023cf57d763ff5b17dbb2a3afec156ca54a65d (patch)
tree39c3e562319bdb8cf605f4e0f73851427189eaf7 /src/bootloader/make_initrd.c
parentc7e755cb843593db1eedb26c5c24932bbe743745 (diff)
Fixed several warnings
Diffstat (limited to 'src/bootloader/make_initrd.c')
-rw-r--r--src/bootloader/make_initrd.c4
1 files changed, 3 insertions, 1 deletions
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 <stdio.h>
+#include <string.h>
+#include <stdlib.h>
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++) {