debuginfod, elfclassify: remove unnecessary header inclusion
Commit Message
`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>
---
debuginfod/debuginfod.cxx | 1 -
src/elfclassify.c | 1 -
2 files changed, 2 deletions(-)
Comments
Hi Saleem,
On Fri, 2021-08-20 at 18:21 +0000, Saleem Abdulrasool via Elfutils-devel wrote:
> `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>
Thanks. Added ChangeLog entries and pushed.
Cheers,
Mark
@@ -46,7 +46,6 @@ extern "C" {
#include <unistd.h>
#include <stdlib.h>
-#include <error.h>
#include <libintl.h>
#include <locale.h>
#include <pthread.h>
@@ -19,7 +19,6 @@
#include <system.h>
#include <argp.h>
-#include <error.h>
#include <fcntl.h>
#include <gelf.h>
#include <stdbool.h>