diff options
Diffstat (limited to 'libelf/elf_error.c')
-rw-r--r-- | libelf/elf_error.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libelf/elf_error.c b/libelf/elf_error.c index aa7f9173..d6bdaab0 100644 --- a/libelf/elf_error.c +++ b/libelf/elf_error.c @@ -1,5 +1,5 @@ /* Error handling in libelf. - Copyright (C) 1998-2010 Red Hat, Inc. + Copyright (C) 1998-2010, 2015 Red Hat, Inc. This file is part of elfutils. Written by Ulrich Drepper <drepper@redhat.com>, 1998. @@ -283,16 +283,15 @@ static const uint_fast16_t msgidx[ELF_E_NUM] = void -__libelf_seterrno (value) - int value; +internal_function +__libelf_seterrno (int value) { global_error = value >= 0 && value < nmsgidx ? value : ELF_E_UNKNOWN_ERROR; } const char * -elf_errmsg (error) - int error; +elf_errmsg (int error) { int last_error = global_error; |