Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a391b11

Browse files
committed
Rename internal helper function and make it static.
1 parent 941f956 commit a391b11

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Modules/posixmodule.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ static int win32_can_symlink = 0;
363363
#endif
364364
#endif
365365

366-
int
367-
PyParse_off_t(PyObject* arg, void* addr)
366+
static int
367+
_parse_off_t(PyObject* arg, void* addr)
368368
{
369369
#if !defined(HAVE_LARGEFILE_SUPPORT)
370370
*((off_t*)addr) = PyLong_AsLong(arg);
@@ -5827,10 +5827,10 @@ posix_sendfile(PyObject *self, PyObject *args, PyObject *kwdict)
58275827

58285828
#ifdef __APPLE__
58295829
if (!PyArg_ParseTupleAndKeywords(args, kwdict, "iiO&O&|OOi:sendfile",
5830-
keywords, &out, &in, PyParse_off_t, &offset, PyParse_off_t, &sbytes,
5830+
keywords, &out, &in, _parse_off_t, &offset, _parse_off_t, &sbytes,
58315831
#else
58325832
if (!PyArg_ParseTupleAndKeywords(args, kwdict, "iiO&n|OOi:sendfile",
5833-
keywords, &out, &in, PyParse_off_t, &offset, &len,
5833+
keywords, &out, &in, _parse_off_t, &offset, &len,
58345834
#endif
58355835
&headers, &trailers, &flags))
58365836
return NULL;
@@ -5914,7 +5914,7 @@ posix_sendfile(PyObject *self, PyObject *args, PyObject *kwdict)
59145914
return Py_BuildValue("nO", ret, Py_None);
59155915
}
59165916
#endif
5917-
PyParse_off_t(offobj, &offset);
5917+
_parse_off_t(offobj, &offset);
59185918
Py_BEGIN_ALLOW_THREADS
59195919
ret = sendfile(out, in, &offset, count);
59205920
Py_END_ALLOW_THREADS

0 commit comments

Comments
 (0)