Fix sentinels.
authorRonald Blaschke <ron@rblasch.org>
Sat, 30 May 2009 23:30:11 +0000 (01:30 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 30 May 2009 23:30:11 +0000 (01:30 +0200)
dulwich/_objects.c
dulwich/_pack.c

index f213b1b77adfd80fd4fcf1c1bf26086d6cc663e0..996bb5e5eaaeaacbc219a70e3aa25f62ac1d45e2 100644 (file)
@@ -133,7 +133,8 @@ static PyObject *py_parse_tree(PyObject *self, PyObject *args)
 static PyMethodDef py_objects_methods[] = {
        { "hex_to_sha", (PyCFunction)py_hex_to_sha, METH_O, NULL },
        { "sha_to_hex", (PyCFunction)py_sha_to_hex, METH_O, NULL },
-       { "parse_tree", (PyCFunction)py_parse_tree, METH_VARARGS, NULL, },
+       { "parse_tree", (PyCFunction)py_parse_tree, METH_VARARGS, NULL },
+       { NULL, NULL, 0, NULL }
 };
 
 void init_objects(void)
index 55fa09d084977a66938606370fe2a19aed42d5fc..c45b0d8edbf4566dfc9dc57ff5b68c3350cbb8df 100644 (file)
@@ -175,7 +175,8 @@ static PyObject *py_bisect_find_sha(PyObject *self, PyObject *args)
 
 static PyMethodDef py_pack_methods[] = {
        { "apply_delta", (PyCFunction)py_apply_delta, METH_VARARGS, NULL },
-    { "bisect_find_sha", (PyCFunction)py_bisect_find_sha, METH_VARARGS, NULL },
+       { "bisect_find_sha", (PyCFunction)py_bisect_find_sha, METH_VARARGS, NULL },
+       { NULL, NULL, 0, NULL }
 };
 
 void init_pack(void)