Skip to content

Commit

Permalink
Make some private functions static (thanks make smelly)
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed May 24, 2009
1 parent 118ebe1 commit 69f7114
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/_functoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,15 @@ static PyGetSetDef partial_getsetlist[] = {
it as a hook to do stange things.
*/

PyObject *
static PyObject *
partial_reduce(partialobject *pto, PyObject *unused)
{
return Py_BuildValue("O(O)(OOOO)", Py_TYPE(pto), pto->fn, pto->fn,
pto->args, pto->kw,
pto->dict ? pto->dict : Py_None);
}

PyObject *
static PyObject *
partial_setstate(partialobject *pto, PyObject *args)
{
PyObject *fn, *fnargs, *kw, *dict;
Expand Down
1 change: 1 addition & 0 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3117,6 +3117,7 @@ free_string_array(char **array, Py_ssize_t count)
PyMem_DEL(array);
}

static
int fsconvert_strdup(PyObject *o, char**out)
{
PyObject *bytes;
Expand Down

0 comments on commit 69f7114

Please sign in to comment.