diff options
author | Georg Brandl <georg@python.org> | 2011-02-25 15:23:18 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-02-25 15:23:18 (GMT) |
commit | a391b11320f729f6eec6c772c00b3e62c2746eaf (patch) | |
tree | e0fe489f16824a789dd075bd52571f92dc9930fa | |
parent | 941f956d1bf97be882ff60a1120e5fdd299f8abe (diff) | |
download | cpython-a391b11320f729f6eec6c772c00b3e62c2746eaf.zip cpython-a391b11320f729f6eec6c772c00b3e62c2746eaf.tar.gz cpython-a391b11320f729f6eec6c772c00b3e62c2746eaf.tar.bz2 |
Rename internal helper function and make it static.
-rw-r--r-- | Modules/posixmodule.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 01544b6..56b2063 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -363,8 +363,8 @@ static int win32_can_symlink = 0; #endif #endif -int -PyParse_off_t(PyObject* arg, void* addr) +static int +_parse_off_t(PyObject* arg, void* addr) { #if !defined(HAVE_LARGEFILE_SUPPORT) *((off_t*)addr) = PyLong_AsLong(arg); @@ -5827,10 +5827,10 @@ posix_sendfile(PyObject *self, PyObject *args, PyObject *kwdict) #ifdef __APPLE__ if (!PyArg_ParseTupleAndKeywords(args, kwdict, "iiO&O&|OOi:sendfile", - keywords, &out, &in, PyParse_off_t, &offset, PyParse_off_t, &sbytes, + keywords, &out, &in, _parse_off_t, &offset, _parse_off_t, &sbytes, #else if (!PyArg_ParseTupleAndKeywords(args, kwdict, "iiO&n|OOi:sendfile", - keywords, &out, &in, PyParse_off_t, &offset, &len, + keywords, &out, &in, _parse_off_t, &offset, &len, #endif &headers, &trailers, &flags)) return NULL; @@ -5914,7 +5914,7 @@ done: return Py_BuildValue("nO", ret, Py_None); } #endif - PyParse_off_t(offobj, &offset); + _parse_off_t(offobj, &offset); Py_BEGIN_ALLOW_THREADS ret = sendfile(out, in, &offset, count); Py_END_ALLOW_THREADS |