diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-01-04 12:00:51 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-01-04 12:00:51 +0200 |
commit | 243e97302da9e9029f417fa3c698a2973a4e65b7 (patch) | |
tree | f71f22ef7bb857d3ae6a256b2966e2cf254e3f81 /tools/debugedit.c | |
parent | d50839b8b3c4793a5c98c36f6e487aa12b9be3ba (diff) | |
download | rpm-243e97302da9e9029f417fa3c698a2973a4e65b7.tar.gz |
Remove now useless nested function in debugedit
Diffstat (limited to 'tools/debugedit.c')
-rw-r--r-- | tools/debugedit.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/debugedit.c b/tools/debugedit.c index d52c95a1e..6699c76f4 100644 --- a/tools/debugedit.c +++ b/tools/debugedit.c @@ -1352,12 +1352,6 @@ handle_build_id (DSO *dso, Elf_Data *build_id, or Elf64 object, only that we are consistent in what bits feed the hash so it comes out the same for the same file contents. */ { - inline void process (const void *data, size_t size); - inline void process (const void *data, size_t size) - { - rpmDigestUpdate(ctx, data, size); - } - union { GElf_Ehdr ehdr; @@ -1386,7 +1380,7 @@ handle_build_id (DSO *dso, Elf_Data *build_id, goto bad; if (elf64_xlatetom (&x, &x, dso->ehdr.e_ident[EI_DATA]) == NULL) goto bad; - process (x.d_buf, x.d_size); + rpmDigestUpdate(ctx, x.d_buf, x.d_size); } x.d_type = ELF_T_SHDR; @@ -1398,14 +1392,14 @@ handle_build_id (DSO *dso, Elf_Data *build_id, u.shdr.sh_offset = 0; if (elf64_xlatetom (&x, &x, dso->ehdr.e_ident[EI_DATA]) == NULL) goto bad; - process (x.d_buf, x.d_size); + rpmDigestUpdate(ctx, x.d_buf, x.d_size); if (u.shdr.sh_type != SHT_NOBITS) { Elf_Data *d = elf_rawdata (dso->scn[i], NULL); if (d == NULL) goto bad; - process (d->d_buf, d->d_size); + rpmDigestUpdate(ctx, d->d_buf, d->d_size); } } } |