fixed compiler warnings

This commit is contained in:
Nico von Geyso 2013-03-07 11:39:55 +01:00
parent 33638b66e2
commit 5ed77671b2
2 changed files with 2 additions and 3 deletions

View File

@ -69,7 +69,7 @@ PyDoc_STRVAR(init_repository__doc__,
"Creates a new Git repository in the given path.");
PyObject *
init_repository(PyObject *self, PyObject *args, PyObject *kw) {
init_repository(PyObject *self, PyObject *args) {
git_repository *repo;
const char *path;
unsigned int bare;

View File

@ -839,7 +839,7 @@ Repository_create_direct_reference(Repository *self, PyObject *args,
{
PyObject *py_obj;
git_reference *c_reference;
char *c_name, *c_target;
char *c_name;
git_oid oid;
int err, force;
@ -879,7 +879,6 @@ Repository_create_symbolic_reference(Repository *self, PyObject *args,
PyObject *py_obj;
git_reference *c_reference;
char *c_name, *c_target;
git_oid oid;
int err, force;
if (!PyArg_ParseTuple(args, "sOi", &c_name, &py_obj, &force))