commit 7e8ab4105496d186fcc03b5debb7aaae956a3630
parent b3a117921b107cb07c135d343750c546389c1478
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 26 Oct 2021 21:28:28 +0200
libmach/coff32: Limit visibility of atruct arch
This struct is only used in coff32probe.c, so it is better
to isolate it to that file.
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/libmach/coff32/coff32.h b/src/libmach/coff32/coff32.h
@@ -7,12 +7,6 @@
typedef struct coff32 Coff32;
-struct arch {
- char *name;
- unsigned char magic[2];
- int type;
-};
-
struct coff32 {
FILHDR hdr;
AOUTHDR aout;
diff --git a/src/libmach/coff32/coff32probe.c b/src/libmach/coff32/coff32probe.c
@@ -5,6 +5,12 @@
#include "../libmach.h"
#include "coff32.h"
+struct arch {
+ char *name;
+ unsigned char magic[2];
+ int type;
+};
+
static struct arch archs[] = {
"coff32-i386", "\x4c\x01", OBJ(COFF32, ARCH386, LITTLE_ENDIAN),
"coff32-z80", "\x5a\x80", OBJ(COFF32, ARCHZ80, LITTLE_ENDIAN),