summaryrefslogtreecommitdiffstats
path: root/src/bfstd.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-20 12:54:15 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-20 12:54:15 -0400
commitffa83efbb604ba2ed921e86bc6c837f6d605faa2 (patch)
treefc3cfe72923893af49e4652308e0a15a5ce60830 /src/bfstd.c
parent4a96b0d67d5d654ec1d5a3d447ceb07392fe87ec (diff)
downloadbfs-ffa83efbb604ba2ed921e86bc6c837f6d605faa2.tar.xz
Stop using %m
Diffstat (limited to 'src/bfstd.c')
-rw-r--r--src/bfstd.c4
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) {