summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-02-20 15:02:27 (GMT)
committerGitHub <noreply@github.com>2024-02-20 15:02:27 (GMT)
commit9af80ec83d1647a472331bd1333a7fa9108fe98e (patch)
tree855d09a92949b6cbe2b6a9c177bfd399a87a2fa6 /Modules/_ssl.c
parent0749244d13412d7cb5b53d834f586f2198f5b9a6 (diff)
downloadcpython-9af80ec83d1647a472331bd1333a7fa9108fe98e.zip
cpython-9af80ec83d1647a472331bd1333a7fa9108fe98e.tar.gz
cpython-9af80ec83d1647a472331bd1333a7fa9108fe98e.tar.bz2
gh-110850: Replace _PyTime_t with PyTime_t (#115719)
Run command: sed -i -e 's!\<_PyTime_t\>!PyTime_t!g' $(find -name "*.c" -o -name "*.h")
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 950ee36..1bf7241 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -369,7 +369,7 @@ class _ssl.SSLSession "PySSLSession *" "get_state_type(type)->PySSLSession_Type"
#include "clinic/_ssl.c.h"
-static int PySSL_select(PySocketSockObject *s, int writing, _PyTime_t timeout);
+static int PySSL_select(PySocketSockObject *s, int writing, PyTime_t timeout);
static int PySSL_set_owner(PySSLSocket *, PyObject *, void *);
static int PySSL_set_session(PySSLSocket *, PyObject *, void *);
@@ -963,7 +963,7 @@ _ssl__SSLSocket_do_handshake_impl(PySSLSocket *self)
_PySSLError err;
int sockstate, nonblocking;
PySocketSockObject *sock = GET_SOCKET(self);
- _PyTime_t timeout, deadline = 0;
+ PyTime_t timeout, deadline = 0;
int has_timeout;
if (sock) {
@@ -2273,12 +2273,12 @@ PySSL_dealloc(PySSLSocket *self)
*/
static int
-PySSL_select(PySocketSockObject *s, int writing, _PyTime_t timeout)
+PySSL_select(PySocketSockObject *s, int writing, PyTime_t timeout)
{
int rc;
#ifdef HAVE_POLL
struct pollfd pollfd;
- _PyTime_t ms;
+ PyTime_t ms;
#else
int nfds;
fd_set fds;
@@ -2357,7 +2357,7 @@ _ssl__SSLSocket_write_impl(PySSLSocket *self, Py_buffer *b)
_PySSLError err;
int nonblocking;
PySocketSockObject *sock = GET_SOCKET(self);
- _PyTime_t timeout, deadline = 0;
+ PyTime_t timeout, deadline = 0;
int has_timeout;
if (sock != NULL) {
@@ -2495,7 +2495,7 @@ _ssl__SSLSocket_read_impl(PySSLSocket *self, Py_ssize_t len,
_PySSLError err;
int nonblocking;
PySocketSockObject *sock = GET_SOCKET(self);
- _PyTime_t timeout, deadline = 0;
+ PyTime_t timeout, deadline = 0;
int has_timeout;
if (!group_right_1 && len < 0) {
@@ -2627,7 +2627,7 @@ _ssl__SSLSocket_shutdown_impl(PySSLSocket *self)
int sockstate, nonblocking, ret;
int zeros = 0;
PySocketSockObject *sock = GET_SOCKET(self);
- _PyTime_t timeout, deadline = 0;
+ PyTime_t timeout, deadline = 0;
int has_timeout;
if (sock != NULL) {