diff options
author | Philip Kelley <phkelley@hotmail.com> | 2012-11-29 08:29:26 -0500 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2012-11-29 08:29:26 -0500 |
commit | 6762fe087bd75e60b3e551f94c8ecda89d374c83 (patch) | |
tree | 32e63aa5c1f225e6ad754bed58184b2a142ee8ec /src/transports/local.c | |
parent | ac22d08f2fbe53c28a0f7dffcfa44c5408dcf78f (diff) | |
download | libgit2-6762fe087bd75e60b3e551f94c8ecda89d374c83.tar.gz |
Remove casts of return values of type void *
Diffstat (limited to 'src/transports/local.c')
-rw-r--r-- | src/transports/local.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transports/local.c b/src/transports/local.c index db9a08a57..62e8024b5 100644 --- a/src/transports/local.c +++ b/src/transports/local.c @@ -43,7 +43,7 @@ static int add_ref(transport_local *t, const char *name) git_object *obj = NULL, *target = NULL; git_buf buf = GIT_BUF_INIT; - head = (git_remote_head *)git__calloc(1, sizeof(git_remote_head)); + head = git__calloc(1, sizeof(git_remote_head)); GITERR_CHECK_ALLOC(head); head->name = git__strdup(name); @@ -78,7 +78,7 @@ static int add_ref(transport_local *t, const char *name) } /* And if it's a tag, peel it, and add it to the list */ - head = (git_remote_head *)git__calloc(1, sizeof(git_remote_head)); + head = git__calloc(1, sizeof(git_remote_head)); GITERR_CHECK_ALLOC(head); if (git_buf_join(&buf, 0, name, peeled) < 0) return -1; |