lib: use ascii ctype utils

Use the new ascii ctype utils.
This commit is contained in:
Dirk-Jan C. Binnema
2026-07-21 13:23:38 +03:00
committed by Seth Ladygo
parent f2960a197e
commit 502c9cd67b
8 changed files with 23 additions and 20 deletions

View File

@ -111,8 +111,9 @@ struct OutputStream {
void unlink () {
if (fname_.empty())
return;
if (auto&&res{::unlink(fname_.c_str())}; res != 0)
mu_warning("failed to unlink '{}'", ::strerror(res));
if (::unlink(fname_.c_str()) != 0)
mu_warning("failed to unlink '{}': {}", fname_,
::strerror(errno));
else
mu_debug("unlinked output-stream {}", fname_);
}