binman: Clean crap out of tools binman version
authorAlan Cox <alan@etchedpixels.co.uk>
Fri, 14 Nov 2014 16:17:03 +0000 (16:17 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Fri, 14 Nov 2014 16:17:03 +0000 (16:17 +0000)
Library/tools/binman.c

index 3daca8f..d616084 100644 (file)
@@ -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]);