Merge pull request #1 from brain-hackers/fixmisc

細かい修正
This commit is contained in:
Chiharu Shirasaka 2020-10-18 20:09:40 +09:00 committed by GitHub
commit 4a97a4e807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,4 @@
#include <err.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>

View File

@ -1,11 +1,12 @@
#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
uint8_t magic[7] = "B000FF\n";
unsigned char magic[7] = "B000FF\n";
#define READ(buf, len) \
if (!fread(buf, len, 1, f)) \
@ -13,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) {