Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschu <schu-github@schulog.org>2011-07-07 20:14:53 +0400
committerschu <schu-github@schulog.org>2011-07-07 20:14:53 +0400
commitd4cb0ee85c7bab69a666efe51c37105d1b16a126 (patch)
tree9a39d3a0e7048806738f1b808bde4c2a1db6b2d6 /src/tsort.c
parentda5b1e1c730d580ed5d414860c84b67122564528 (diff)
tsort: remove unused but set variable
Signed-off-by: schu <schu-github@schulog.org>
Diffstat (limited to 'src/tsort.c')
-rw-r--r--src/tsort.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tsort.c b/src/tsort.c
index 84f4d61ea..63fd43304 100644
--- a/src/tsort.c
+++ b/src/tsort.c
@@ -40,7 +40,7 @@ typedef int (*cmp_ptr_t)(const void *, const void *);
static int binsearch(void **dst, const void *x, size_t size, cmp_ptr_t cmp)
{
int l, c, r;
- void *lx, *cx, *rx;
+ void *lx, *cx;
l = 0;
r = size - 1;
@@ -58,7 +58,6 @@ static int binsearch(void **dst, const void *x, size_t size, cmp_ptr_t cmp)
return i;
}
- rx = dst[r];
/* guaranteed not to be >= rx */
cx = dst[c];
while (1) {
@@ -66,7 +65,6 @@ static int binsearch(void **dst, const void *x, size_t size, cmp_ptr_t cmp)
if (val < 0) {
if (c - l <= 1) return c;
r = c;
- rx = cx;
} else if (val > 0) {
if (r - c <= 1) return c + 1;
l = c;