From aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 11 Feb 2014 19:57:06 -0800 Subject: Clean up sys_signame and sys_siglist a little. We don't need quite so much duplication because we already have a way to get the signal number from its name, and that already copes with the fact that the mips/mips64 numbers are different from everyone else's. Also remove sys_signame from LP64. glibc doesn't have this BSD-ism. Change-Id: I6dc411a3d73589383c85d3b07d9d648311492a10 --- libc/bionic/strerror_r.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/bionic/strerror_r.cpp') diff --git a/libc/bionic/strerror_r.cpp b/libc/bionic/strerror_r.cpp index 81120ec..5f2d362 100644 --- a/libc/bionic/strerror_r.cpp +++ b/libc/bionic/strerror_r.cpp @@ -34,7 +34,7 @@ extern "C" __LIBC_HIDDEN__ const char* __strerror_lookup(int error_number) { } static const Pair _sys_signal_strings[] = { -#define __BIONIC_SIGDEF(x,y,z) { y, z }, +#define __BIONIC_SIGDEF(signal_number, signal_description) { signal_number, signal_description }, #include { 0, NULL } }; -- cgit v1.1