Commit 3d6e3daf authored by bescoto's avatar bescoto

Added parameter checking to my_sync


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@306 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 480333e0
...@@ -36,7 +36,7 @@ static PyObject *UnknownFileTypeError; ...@@ -36,7 +36,7 @@ static PyObject *UnknownFileTypeError;
static PyObject *c_make_file_dict(PyObject *self, PyObject *args); static PyObject *c_make_file_dict(PyObject *self, PyObject *args);
static PyObject *long2str(PyObject *self, PyObject *args); static PyObject *long2str(PyObject *self, PyObject *args);
static PyObject *str2long(PyObject *self, PyObject *args); static PyObject *str2long(PyObject *self, PyObject *args);
static PyObject *my_sync(PyObject *self); static PyObject *my_sync(PyObject *self, PyObject *args);
/* Turn a stat structure into a python dictionary. The preprocessor /* Turn a stat structure into a python dictionary. The preprocessor
...@@ -181,9 +181,11 @@ static PyObject *long2str(self, args) ...@@ -181,9 +181,11 @@ static PyObject *long2str(self, args)
/* Run sync() and return None */ /* Run sync() and return None */
static PyObject *my_sync(self) static PyObject *my_sync(self, args)
PyObject *self; PyObject *self;
PyObject *args;
{ {
if (!PyArg_ParseTuple(args, "")) return NULL;
sync(); sync();
return Py_BuildValue(""); return Py_BuildValue("");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment