summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/putpwent.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/pwd_grp/putpwent.c')
-rw-r--r--libc/pwd_grp/putpwent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/pwd_grp/putpwent.c b/libc/pwd_grp/putpwent.c
index da8e13d67..014cefa86 100644
--- a/libc/pwd_grp/putpwent.c
+++ b/libc/pwd_grp/putpwent.c
@@ -25,7 +25,7 @@
int putpwent(const struct passwd *passwd, FILE * f)
{
if (passwd == NULL || f == NULL) {
- errno = EINVAL;
+ __set_errno(EINVAL);
return -1;
}
if (fprintf