diff options
Diffstat (limited to 'usr.bin/ranlib/build.c')
-rw-r--r-- | usr.bin/ranlib/build.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/ranlib/build.c b/usr.bin/ranlib/build.c index 6d57268ae438..737cc66a28d7 100644 --- a/usr.bin/ranlib/build.c +++ b/usr.bin/ranlib/build.c @@ -63,6 +63,9 @@ typedef struct _rlib { RLIB *rhead, **pnext; FILE *fp; +long symcnt; /* symbol count */ +long tsymlen; /* total string length */ + static void rexec(), symobj(); build() @@ -74,6 +77,8 @@ build() afd = open_archive(O_RDWR); fp = fdopen(afd, "r+"); tfd = tmp(); + symcnt = 0; + tsymlen = 0; SETCF(afd, archive, tfd, tname, RPAD|WPAD); @@ -106,9 +111,6 @@ build() return(0); } -long symcnt; /* symbol count */ -long tsymlen; /* total string length */ - /* * rexec * Read the exec structure; ignore any files that don't look |