strerror: avoid warnings about discarding "const"
authorJim Meyering <meyering@redhat.com>
Fri, 16 Jan 2009 11:09:48 +0000 (12:09 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 16 Jan 2009 12:34:49 +0000 (13:34 +0100)
commite4a3cd42ac25523ff21fa076f6d62e3e0ac31980
treee35fb90e60a3eeed4be900e18b93dad260bef939
parent5f852e00dd11ae9bfdc2270b82fb30e24b8884ad
strerror: avoid warnings about discarding "const"

* lib/strerror.c (rpl_strerror): Instead of returning a const
string from each and every "case", use a variable, and add a single
cast after the switch.
ChangeLog
lib/strerror.c