From 77023b9d94dff903454be8c4075e6fbdd9582058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Fri, 26 Apr 2024 15:12:44 +0200 Subject: [PATCH] Remove the HAVE_CRYPT_R and HAVE_CRYPT_H ifdefs We assume they are available on the system. Co-authored-by: Petr Viktorin Co-authored-by: Karolina Surma --- Modules/_cryptmodule.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Modules/_cryptmodule.c b/Modules/_cryptmodule.c index 32be801..de4a163 100644 --- a/Modules/_cryptmodule.c +++ b/Modules/_cryptmodule.c @@ -6,9 +6,7 @@ #include "Python.h" #include -#ifdef HAVE_CRYPT_H #include -#endif /* Module crypt */ @@ -74,13 +72,9 @@ crypt_crypt(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } char *crypt_result; -#ifdef HAVE_CRYPT_R struct crypt_data data; memset(&data, 0, sizeof(data)); crypt_result = crypt_r(word, salt, &data); -#else - crypt_result = crypt(word, salt); -#endif if (crypt_result == NULL) { return PyErr_SetFromErrno(PyExc_OSError); }