summaryrefslogtreecommitdiffstats
path: root/sysif.c
diff options
context:
space:
mode:
authorPaul A. Patience <paul@apatience.com>2021-10-03 20:11:20 -0400
committerKaz Kylheku <kaz@kylheku.com>2021-10-04 06:53:50 -0700
commit6b4a2eeaa2d8a0198a9199656ee5fbbb8dc9ab76 (patch)
treee30ad313eadd77cf29e17402fc2afb8f8f7f9553 /sysif.c
parentad102c8e19b2aa69b0647dbf1c72c9402de4c79d (diff)
downloadtxr-6b4a2eeaa2d8a0198a9199656ee5fbbb8dc9ab76.tar.gz
txr-6b4a2eeaa2d8a0198a9199656ee5fbbb8dc9ab76.tar.bz2
txr-6b4a2eeaa2d8a0198a9199656ee5fbbb8dc9ab76.zip
exceptions: fix leftover uw_throwfs with errno.
* ffi.c (mmap_wrap, mmap_op): Switch to uw_ethrowf. * sysif.c (getresgid_wrap): Same.
Diffstat (limited to 'sysif.c')
-rw-r--r--sysif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysif.c b/sysif.c
index 6f4ad727..13f5f2a6 100644
--- a/sysif.c
+++ b/sysif.c
@@ -1846,8 +1846,8 @@ static val getresgid_wrap(void)
{
gid_t r, e, s;
if (getresgid(&r, &e, &s) != 0)
- uw_throwf(system_error_s, lit("getresgid failed: ~d/~s"),
- num(errno), errno_to_str(errno), nao);
+ uw_ethrowf(system_error_s, lit("getresgid failed: ~d/~s"),
+ num(errno), errno_to_str(errno), nao);
return list(num(r), num(e), num(s), nao);
}