shithub: scc

Download patch

ref: 0bdc41f75c7f007037d8e5ee20e0ecad88bc5558
parent: d69a87fbbe610e26cc16b25ef694a3d4ec985edd
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Feb 11 11:56:23 EST 2019

[libmach/coff32] Remove fp field as it is not used

--- a/include/scc/scc/mach.h
+++ b/include/scc/scc/mach.h
@@ -20,7 +20,6 @@
 	char *name;
 	int type;
 	unsigned flags;
-	FILE *fp;
 	long offset;
 	unsigned long long size;
 };
--- a/src/libmach/coff32/coff32read.c
+++ b/src/libmach/coff32/coff32read.c
@@ -196,7 +196,6 @@
 			return 0;
 
 		memcpy(sp->name, scn->s_name, len);
-		sp->fp = fp;
 		sp->offset = scn->s_scnptr;
 		sp->size = scn->s_size;
 		sp->type = type;