Ronald Blaschke 16 éve
szülő
commit
41c5c4ecc8
2 módosított fájl, 4 hozzáadás és 2 törlés
  1. 2 1
      dulwich/_objects.c
  2. 2 1
      dulwich/_pack.c

+ 2 - 1
dulwich/_objects.c

@@ -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)

+ 2 - 1
dulwich/_pack.c

@@ -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)