diff options
| author | Ulrich Drepper <[email protected]> | 2007-02-05 21:05:51 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2007-02-05 21:05:51 +0000 |
| commit | 0fe63531c14236e1c0188b7fd1b3ffdc383d95bc (patch) | |
| tree | f8ef1a8530d98f8ab3a6025f052eb29cff500550 /src/ranlib.c | |
| parent | aa915fd3d70b4cbe4581f9ec170d986c6ba35063 (diff) | |
Make symtab a global variable in arlib.c.
Diffstat (limited to 'src/ranlib.c')
| -rw-r--r-- | src/ranlib.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ranlib.c b/src/ranlib.c index 0a8667d3..9a884cb1 100644 --- a/src/ranlib.c +++ b/src/ranlib.c @@ -197,8 +197,7 @@ handle_file (const char *fname) return 1; } - struct arlib_symtab symtab; - arlib_init (&symtab); + arlib_init (); /* Iterate over the content of the archive. */ off_t index_off = -1; @@ -219,7 +218,7 @@ handle_file (const char *fname) } else { - arlib_add_symbols (elf, fname, arhdr->ar_name, &symtab, cur_off); + arlib_add_symbols (elf, fname, arhdr->ar_name, cur_off); cur_off += (((arhdr->ar_size + 1) & ~((off_t) 1)) + sizeof (struct ar_hdr)); } @@ -231,7 +230,7 @@ handle_file (const char *fname) elf_errmsg (-1)); } - arlib_finalize (&symtab); + arlib_finalize (); /* If the file contains no symbols we need not do anything. */ int status = 0; @@ -299,7 +298,7 @@ handle_file (const char *fname) elf_end (arelf); - arlib_fini (&symtab); + arlib_fini (); close (fd); |
