summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-03-19 00:39:10 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-03-19 00:39:10 +0000
commit2c7254d1b5c46e86cf543993416f59e163f837d3 (patch)
treefc710f10e412fd29508fceeba89b5148524fd1dd
parent0b36f985cb741573e80986c5f0b06f04eeec4253 (diff)
downloadrdiff-backup-2c7254d1b5c46e86cf543993416f59e163f837d3.tar.gz
Added parameter checking to my_sync
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@306 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/rdiff_backup/cmodule.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/cmodule.c b/rdiff-backup/rdiff_backup/cmodule.c
index 6673ee5..59b93e2 100644
--- a/rdiff-backup/rdiff_backup/cmodule.c
+++ b/rdiff-backup/rdiff_backup/cmodule.c
@@ -36,7 +36,7 @@ static PyObject *UnknownFileTypeError;
static PyObject *c_make_file_dict(PyObject *self, PyObject *args);
static PyObject *long2str(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
@@ -181,9 +181,11 @@ static PyObject *long2str(self, args)
/* Run sync() and return None */
-static PyObject *my_sync(self)
+static PyObject *my_sync(self, args)
PyObject *self;
+ PyObject *args;
{
+ if (!PyArg_ParseTuple(args, "")) return NULL;
sync();
return Py_BuildValue("");
}