mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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")
This commit is contained in:
parent
0749244d13
commit
9af80ec83d
31 changed files with 341 additions and 341 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue