diff options
author | Vicent Martà <tanoku@gmail.com> | 2011-08-08 11:10:16 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2011-08-08 11:10:16 -0700 |
commit | a41bf612221d1b709af96b58209933653f3d1355 (patch) | |
tree | 17261b38e62f2ebb7bffbb684892d24b77c2c108 /src | |
parent | 5bd4fb59bc4d625eb89e0eb4492d17ec22476163 (diff) | |
parent | 1b5078f6b186b92c237e2148a9008be8d372f675 (diff) | |
download | libgit2-a41bf612221d1b709af96b58209933653f3d1355.tar.gz |
Merge pull request #357 from carlosmn/calling-convention
Use __stdcall by default on Windows
Diffstat (limited to 'src')
-rw-r--r-- | src/transport_local.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/transport_local.c b/src/transport_local.c index 64ac183d1..bb3b10e10 100644 --- a/src/transport_local.c +++ b/src/transport_local.c @@ -14,14 +14,6 @@ typedef struct { git_vector *refs; } transport_local; -static int cmp_refs(const void *a, const void *b) -{ - const char *stra = *(const char * const *) a; - const char *strb = *(const char * const *) b; - - return strcmp(stra, strb); -} - /* * Try to open the url as a git directory. The direction doesn't * matter in this case because we're calulating the heads ourselves. @@ -148,7 +140,7 @@ static int local_ls(git_transport *transport, git_headarray *array) return error; /* Sort the references first */ - qsort(refs.strings, refs.count, sizeof(char *), cmp_refs); + git__tsort((void **)refs.strings, refs.count, (git_vector_cmp) strcmp); /* Add HEAD */ error = add_ref(GIT_HEAD_FILE, repo, vec); |