Get rid of strerror_safe()

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-10-11 16:59:00 +02:00
parent eaaf7465ee
commit 0cf1a4b3a7
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -73,11 +73,6 @@ static inline int RET_NERRNO(int ret) {
return ret;
}
static inline const char *strerror_safe(int error) {
/* 'safe' here does NOT mean thread safety. */
return strerror(abs(error));
}
static inline int errno_or_else(int fallback) {
/* To be used when invoking library calls where errno handling is not defined clearly: we return
* errno if it is set, and the specified error otherwise. The idea is that the caller initializes