summaryrefslogtreecommitdiff
path: root/sysdeps/generic/crypt-entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/crypt-entry.c')
-rw-r--r--sysdeps/generic/crypt-entry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/crypt-entry.c b/sysdeps/generic/crypt-entry.c
index de15904b2c..ab1c6faaab 100644
--- a/sysdeps/generic/crypt-entry.c
+++ b/sysdeps/generic/crypt-entry.c
@@ -48,7 +48,7 @@ crypt_r (key, salt, data)
return md5_crypt_r (key, salt, (char *) data, sizeof (struct crypt_data));
/* We don't have DES encryption. */
- errno = ENOSYS;
+ __set_errno (ENOSYS);
return NULL;
}
@@ -63,6 +63,6 @@ crypt (key, salt)
return md5_crypt (key, salt);
/* We don't have DES encryption. */
- errno = ENOSYS;
+ __set_errno (ENOSYS);
return NULL;
}