summaryrefslogtreecommitdiff
path: root/coccinelle
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-07-26 10:57:26 +0200
committerLennart Poettering <lennart@poettering.net>2019-07-26 18:42:49 +0200
commit6fd79cca68a170c88e87b5d95cd7a44953df94e2 (patch)
tree512425bf519546e7b46fb75a3ed3a51fc9217631 /coccinelle
parent17f8fd9cf74b190c19140e16a0bf65de588bdbc7 (diff)
downloadsystemd-6fd79cca68a170c88e87b5d95cd7a44953df94e2.tar.gz
systemd-6fd79cca68a170c88e87b5d95cd7a44953df94e2.tar.bz2
systemd-6fd79cca68a170c88e87b5d95cd7a44953df94e2.zip
errno-util: return const string from strerror_safe()
C's strerror() function does not return a "const char *" pointer for the string. That has historic reasons and C99 even comments that "[t]he array pointed to shall not be modified by the program". Make the strerror_safe() wrapper correct this and be more strict in this regard.
Diffstat (limited to 'coccinelle')
0 files changed, 0 insertions, 0 deletions