Mercurial > hg-old > index.cgi
diff lwlink/objdump.c @ 212:bae1e3ecdce1
More preparation for gnulib integration
author | lost |
---|---|
date | Fri, 24 Apr 2009 06:43:02 +0000 |
parents | 048ebb85f6ef |
children | f9f01a499525 |
line wrap: on
line diff
--- a/lwlink/objdump.c Fri Apr 24 06:27:00 2009 +0000 +++ b/lwlink/objdump.c Fri Apr 24 06:43:02 2009 +0000 @@ -21,7 +21,7 @@ A standalone program to dump an object file in a text form to stdout */ - +#include <config.h> #include <stdio.h> #include <stdlib.h> @@ -32,6 +32,7 @@ #endif void read_lwobj16v0(unsigned char *filedata, long filesize); +char *program_name; /* The logic of reading the entire file into memory is simple. All the symbol @@ -45,7 +46,8 @@ FILE *f; long bread; unsigned char *filedata; - + + program_name = argv[0]; if (argc != 2) { fprintf(stderr, "Must specify exactly one input file.\n");