projects/aports·blob master · refs

30 lines · 804 B

1--- ltrace-0.7.3.orig/sysdeps/linux-gnu/mips/plt.c
2+++ ltrace-0.7.3/sysdeps/linux-gnu/mips/plt.c
3@@ -22,7 +22,7 @@
4 */
5
6 #include <string.h>
7-#include <error.h>
8+#include <err.h>
9 #include <errno.h>
10 #include <gelf.h>
11 #include <sys/ptrace.h>
12@@ -166,8 +166,7 @@
13 sym_index += lte->arch.mips_gotsym;
14
15 if (gelf_getsym(lte->dynsym, sym_index, sym) == NULL){
16- error(EXIT_FAILURE, 0,
17- "Couldn't get relocation from \"%s\"", filename);
18+ errx(EXIT_FAILURE, "Couldn't get relocation from \"%s\"", filename);
19 }
20
21 name = lte->dynstr + sym->st_name;
22@@ -212,7 +211,7 @@
23 if (elf_get_section_type(lte, SHT_DYNAMIC, &scn, &shdr) < 0
24 || scn == NULL) {
25 fail:
26- error(0, 0, "Couldn't get SHT_DYNAMIC: %s",
27+ err(0, "Couldn't get SHT_DYNAMIC: %s",
28 elf_errmsg(-1));
29 return -1;
30 }