about summary refs log tree commit diff
path: root/string/tst-strsignal.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-05-14 18:14:43 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-07-07 14:10:58 -0300
commit08d2024b4167913623cefcceb2fec6e483972868 (patch)
treedb82591a513435dacebe046d260f024857a86e03 /string/tst-strsignal.c
parent725eeb4af14c6fec4ed26a796cdfd6d50df86d42 (diff)
downloadglibc-08d2024b4167913623cefcceb2fec6e483972868.tar.gz
glibc-08d2024b4167913623cefcceb2fec6e483972868.tar.xz
glibc-08d2024b4167913623cefcceb2fec6e483972868.zip
string: Simplify strerror_r
Use snprintf instead of mempcpy plus itoa_word and remove unused
definitions.  There is no potential for infinite recursion because
snprintf only use strerror_r for the %m specifier.

Checked on x86-64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu,
and s390x-linux-gnu.

Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'string/tst-strsignal.c')
0 files changed, 0 insertions, 0 deletions