scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit c1b5ec796dc1e791a4ee2dd68bbbfdf6c9f3c54b
parent bd570a1ef1dbec67feecf715db543f08a3cd9f29
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue,  6 Mar 2018 12:38:08 +0100

[nm] Remove fname from object() parameters

Diffstat:
Mnm/main.c | 4++--
Mnm/myro.c | 2+-
Mnm/nm.h | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/nm/main.c b/nm/main.c @@ -87,7 +87,7 @@ ar(char *fname, FILE *fp) pos += siz; getfname(&hdr, member); - if (object(fname, fp)) { + if (object(fp)) { nm(fname, hdr.ar_name, fp); } else { fprintf(stderr, @@ -154,7 +154,7 @@ doit(char *fname) exit(1); } - if (object(fname, fp)) + if (object(fp)) nm(fname, fname, fp); else if (archive(fname, fp)) ar(fname, fp); diff --git a/nm/myro.c b/nm/myro.c @@ -125,7 +125,7 @@ offset_overflow: } int -object(char *fname, FILE *fp) +object(FILE *fp) { char magic[MYROMAGIC_SIZ]; fpos_t pos; diff --git a/nm/nm.h b/nm/nm.h @@ -11,7 +11,7 @@ extern void print(char *file, char *member, struct symbol *sym); /* object format file */ extern void nm(char *fname, char *member, FILE *fp); -extern int object(char *fname, FILE *fp); +extern int object(FILE *fp); extern int radix; extern int Pflag;