diff options
author | svn2git <svn2git@FreeBSD.org> | 1994-07-01 08:00:00 +0000 |
---|---|---|
committer | svn2git <svn2git@FreeBSD.org> | 1994-07-01 08:00:00 +0000 |
commit | 5e0e9b99dc3fc0ecd49d929db0d57c784b66f481 (patch) | |
tree | e779b5a6edddbb949b7990751b12d6f25304ba86 /usr.bin/ranlib/build.c | |
parent | a16f65c7d117419bd266c28a1901ef129a337569 (diff) |
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 |