diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-05-20 12:54:15 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-05-20 12:54:15 -0400 |
commit | ffa83efbb604ba2ed921e86bc6c837f6d605faa2 (patch) | |
tree | fc3cfe72923893af49e4652308e0a15a5ce60830 /src/bfstd.c | |
parent | 4a96b0d67d5d654ec1d5a3d447ceb07392fe87ec (diff) | |
download | bfs-ffa83efbb604ba2ed921e86bc6c837f6d605faa2.tar.xz |
Stop using %m
Diffstat (limited to 'src/bfstd.c')
-rw-r--r-- | src/bfstd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bfstd.c b/src/bfstd.c index 7680f17..ce2218c 100644 --- a/src/bfstd.c +++ b/src/bfstd.c @@ -322,6 +322,10 @@ const char *xstrerror(int errnum) { return ret; } +const char *errstr(void) { + return xstrerror(errno); +} + /** Get the single character describing the given file type. */ static char type_char(mode_t mode) { switch (mode & S_IFMT) { |