summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-10-18 12:11:54 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-10-18 12:11:54 -0400
commit6571d991af45b064bc650b10a36b87d3ecaed2c8 (patch)
tree2afc6a7d54f0ff56ec4dd1bbcd4012460e339ae1 /src
parentb1ebd146e843237781657872aa83b65ddce166f7 (diff)
downloadbfs-6571d991af45b064bc650b10a36b87d3ecaed2c8.tar.xz
util: Use ENOTSUP instead of ENOSYS for stubbed xconfstr()
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 88cc859..b1a038a 100644
--- a/src/util.c
+++ b/src/util.c
@@ -417,7 +417,7 @@ size_t xwrite(int fd, const void *buf, size_t nbytes) {
char *xconfstr(int name) {
#if __ANDROID__
- errno = ENOSYS;
+ errno = ENOTSUP;
return NULL;
#else
size_t len = confstr(name, NULL, 0);