about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/sigpending.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/sigpending.c')
-rw-r--r--sysdeps/mach/hurd/sigpending.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sysdeps/mach/hurd/sigpending.c b/sysdeps/mach/hurd/sigpending.c
index 59078a3f72..6a8d3b8b1f 100644
--- a/sysdeps/mach/hurd/sigpending.c
+++ b/sysdeps/mach/hurd/sigpending.c
@@ -30,10 +30,7 @@ sigpending (sigset_t *set)
   sigset_t pending;
 
   if (set == NULL)
-    {
-      errno = EINVAL;
-      return -1;
-    }
+    return __hurd_fail (EINVAL);
 
   ss = _hurd_self_sigstate ();
   _hurd_sigstate_lock (ss);