public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f807882
)
binman: Clean crap out of tools binman version
author
Alan Cox
<alan@etchedpixels.co.uk>
Fri, 14 Nov 2014 16:17:03 +0000
(16:17 +0000)
committer
Alan Cox
<alan@etchedpixels.co.uk>
Fri, 14 Nov 2014 16:17:03 +0000
(16:17 +0000)
Library/tools/binman.c
patch
|
blob
|
history
diff --git
a/Library/tools/binman.c
b/Library/tools/binman.c
index
3daca8f
..
d616084
100644
(file)
--- a/
Library/tools/binman.c
+++ b/
Library/tools/binman.c
@@
-21,19
+21,11
@@
static unsigned int s__DATA;
static void ProcessMap(FILE *fp)
{
char buf[512];
- int addr = 0;
- int naddr;
- char name[100];
- char nname[100];
- int hogs = 0;
while(fgets(buf, 511, fp)) {
char *p1 = strtok(buf," \t\n");
char *p2 = NULL;
- int match = 0;
- match = memcmp(buf, " 000", 8);
-
if (p1)
p2 = strtok(NULL, " \t\n");
@@
-55,7
+47,6
@@
static void ProcessMap(FILE *fp)
int main(int argc, char *argv[])
{
FILE *map, *bin;
- int tail;
if (argc != 4) {
fprintf(stderr, "%s: [binary] [map] [output]\n", argv[0]);