diff options
author | Roland McGrath <roland@redhat.com> | 2007-01-11 05:06:16 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2007-01-11 05:06:16 +0000 |
commit | 44865b9e1e73f6c0e35c7d62a72cc73b513f65f0 (patch) | |
tree | 7b5520e92fc48ee6ca92221c4651a70e514548e3 /libelf/nlist.c | |
parent | a8e382f9c2c6dafc6982d8dd696c570a69060069 (diff) | |
download | elfutils-44865b9e1e73f6c0e35c7d62a72cc73b513f65f0.tar.gz |
2007-01-10 Roland McGrath <roland@redhat.com>
* linux-kernel-modules.c (report_kernel): Check asprintf return value
directly instead of via side effect, to silence warn_unused_result.
(dwfl_linux_kernel_report_offline): Likewise.
(dwfl_linux_kernel_find_elf): Likewise.
(dwfl_linux_kernel_module_section_address): Likewise.
* find-debuginfo.c (try_open): Likewise.
Diffstat (limited to 'libelf/nlist.c')
-rw-r--r-- | libelf/nlist.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libelf/nlist.c b/libelf/nlist.c index b3a6af0d..fd2209df 100644 --- a/libelf/nlist.c +++ b/libelf/nlist.c @@ -230,9 +230,6 @@ nlist (const char *filename, struct nlist *nl) /* We do not need the ELF descriptor anymore. */ (void) INTUSE(elf_end) (elf); - /* Neither the file descriptor. */ - (void) close (fd); - return 0; fail_dealloc: @@ -242,9 +239,6 @@ nlist (const char *filename, struct nlist *nl) /* We do not need the ELF descriptor anymore. */ (void) INTUSE(elf_end) (elf); - /* Neither the file descriptor. */ - (void) close (fd); - fail: /* We have to set all entries to zero. */ while (nl->n_name != NULL && nl->n_name[0] != '\0') |