diff options
author | Saleem Abdulrasool <abdulras@google.com> | 2021-08-20 18:21:20 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-08-27 17:15:46 +0200 |
commit | d0c72317dcde4c21e88e37dfd865335fc7f0c079 (patch) | |
tree | 9d34cccb1bebafc47755de1b958c98180ce35a21 | |
parent | d390548df1942e98a1d836269a5e41ba52e121f1 (diff) | |
download | elfutils-d0c72317dcde4c21e88e37dfd865335fc7f0c079.tar.gz |
debuginfod, elfclassify: remove unnecessary header inclusion
`error.h`'s inclusion was centralised into the `system.h` header. As
the implementation currently includes `system.h` already, the inclusion
of `error.h` is unnecessary. This prepares for a future portability
change to allow elfutil to build with alternate libc implementations.
Signed-off-by: Saleem Abdulrasool <abdulras@google.com>
-rw-r--r-- | debuginfod/ChangeLog | 4 | ||||
-rw-r--r-- | debuginfod/debuginfod.cxx | 1 | ||||
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/elfclassify.c | 1 |
4 files changed, 8 insertions, 2 deletions
diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog index 530f7dc7..e8e486ab 100644 --- a/debuginfod/ChangeLog +++ b/debuginfod/ChangeLog @@ -1,3 +1,7 @@ +2021-08-20 Saleem Abdulrasool <abdulras@google.com> + + * debuginfod.cxx: Remove error.h include. + 2021-08-19 Frank Ch. Eigler <fche@redhat.com> PR28249 diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index fca07f61..b560fdcb 100644 --- a/debuginfod/debuginfod.cxx +++ b/debuginfod/debuginfod.cxx @@ -46,7 +46,6 @@ extern "C" { #include <unistd.h> #include <stdlib.h> -#include <error.h> #include <libintl.h> #include <locale.h> #include <pthread.h> diff --git a/src/ChangeLog b/src/ChangeLog index 312bc503..b729eaa4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2021-08-20 Saleem Abdulrasool <abdulras@google.com> + + * elfclassify.c: Remove error.h include. + 2021-03-18 Timm Bäder <tbaeder@redhat.com> * readelf.c (run_advance_pc): New static inline function diff --git a/src/elfclassify.c b/src/elfclassify.c index fe7eeeed..2f70b29a 100644 --- a/src/elfclassify.c +++ b/src/elfclassify.c @@ -19,7 +19,6 @@ #include <system.h> #include <argp.h> -#include <error.h> #include <fcntl.h> #include <gelf.h> #include <stdbool.h> |