From 73dad6aaff665d5eaf7a48f27de71bca6566dd10 Mon Sep 17 00:00:00 2001 From: Takumi Sueda Date: Sun, 18 Oct 2020 15:54:10 +0900 Subject: [PATCH 1/5] include appropriate headers to prevent implicit declarations --- nk-dump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nk-dump.c b/nk-dump.c index 298e025..3a9c5ee 100644 --- a/nk-dump.c +++ b/nk-dump.c @@ -1,7 +1,9 @@ +#include #include #include #include #include +#include #include #include From f480e68228608d3a82fa1f1baddcd3dcd5c04bad Mon Sep 17 00:00:00 2001 From: Takumi Sueda Date: Sun, 18 Oct 2020 15:55:39 +0900 Subject: [PATCH 2/5] add line to install dependency --- README | 1 + 1 file changed, 1 insertion(+) diff --git a/README b/README index 830228a..352c16c 100644 --- a/README +++ b/README @@ -11,6 +11,7 @@ Brainに搭載されているWindows CE用のブートローダー(EBOOT)はSD 使用方法: gccとmakeのインストールされたLinux上で +sudo apt install libelf-dev # Debianの場合 git clone https://github.com/brain-hackers/nkbin_maker cd nkbin_maker make From b62d1a7b005afcad0bf8e33786e19488aaf16d16 Mon Sep 17 00:00:00 2001 From: pepepper Date: Sun, 18 Oct 2020 16:28:18 +0900 Subject: [PATCH 3/5] remove gelf.h --- nk-dump.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nk-dump.c b/nk-dump.c index 3a9c5ee..e52ad3c 100644 --- a/nk-dump.c +++ b/nk-dump.c @@ -1,13 +1,12 @@ #include #include -#include #include #include #include #include #include -uint8_t magic[7] = "B000FF\n"; +unsigned char magic[7] = "B000FF\n"; #define READ(buf, len) \ if (!fread(buf, len, 1, f)) \ @@ -15,8 +14,8 @@ uint8_t magic[7] = "B000FF\n"; int main(int argc, char *argv[]) { FILE *f; - uint8_t marker[7]; - uint32_t i32, addr, cksum, len, i; + unsigned char marker[7]; + unsigned int i32, addr, cksum, len, i; int n, ch, c; if (argc != 2) { From afa310c52db3b63db55d083ced37dac37d4cbc86 Mon Sep 17 00:00:00 2001 From: pepepper Date: Sun, 18 Oct 2020 16:34:32 +0900 Subject: [PATCH 4/5] include appropriate headers to prevent implicit declarations for bsd-ce.c --- bsd-ce.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bsd-ce.c b/bsd-ce.c index 9709e4f..3eac539 100644 --- a/bsd-ce.c +++ b/bsd-ce.c @@ -1,3 +1,4 @@ +#include #include #include #include From b21e835eb709caf817c307ad9b5290f4a4905eb6 Mon Sep 17 00:00:00 2001 From: Takumi Sueda Date: Sun, 18 Oct 2020 17:32:48 +0900 Subject: [PATCH 5/5] Revert "add line to install dependency" This reverts commit f480e68228608d3a82fa1f1baddcd3dcd5c04bad. --- README | 1 - 1 file changed, 1 deletion(-) diff --git a/README b/README index 352c16c..830228a 100644 --- a/README +++ b/README @@ -11,7 +11,6 @@ Brainに搭載されているWindows CE用のブートローダー(EBOOT)はSD 使用方法: gccとmakeのインストールされたLinux上で -sudo apt install libelf-dev # Debianの場合 git clone https://github.com/brain-hackers/nkbin_maker cd nkbin_maker make