diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-12-16 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-12-16 10:01:52 +0000 |
commit | 3ddd8f9bb62b20c62a74d7ded5c7f36783f9b761 (patch) | |
tree | c06f0c355909b1374c8d859e5a8710ae86055d32 /src/arlib.c | |
parent | e1174a5f2c4a1ceac39b3d91337de0e70b0c9fe7 (diff) | |
download | elfutils-3ddd8f9bb62b20c62a74d7ded5c7f36783f9b761.tar.gz |
src: consistently use _(Str) instead of gettext(Str)
Make use of the _(Str) macro provided by <config.h>.
The change was made automatically using the following command:
$ git grep -l '\<gettext *(' src |xargs sed -i 's/\<gettext *(/_(/g'
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'src/arlib.c')
-rw-r--r-- | src/arlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arlib.c b/src/arlib.c index a6521e30..a14c44d3 100644 --- a/src/arlib.c +++ b/src/arlib.c @@ -210,7 +210,7 @@ arlib_add_symbols (Elf *elf, const char *arfname, const char *membername, { if (sizeof (off) > sizeof (uint32_t) && off > ~((uint32_t) 0)) /* The archive is too big. */ - error (EXIT_FAILURE, 0, gettext ("the archive '%s' is too large"), + error (EXIT_FAILURE, 0, _("the archive '%s' is too large"), arfname); /* We only add symbol tables for ELF files. It makes not much sense @@ -223,7 +223,7 @@ arlib_add_symbols (Elf *elf, const char *arfname, const char *membername, GElf_Ehdr ehdr_mem; GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); if (ehdr == NULL) - error (EXIT_FAILURE, 0, gettext ("cannot read ELF header of %s(%s): %s"), + error (EXIT_FAILURE, 0, _("cannot read ELF header of %s(%s): %s"), arfname, membername, elf_errmsg (-1)); GElf_Word symtype; |