Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
44b75a13
Commit
44b75a13
authored
Jul 08, 2011
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #308 from schu/unused-but-set-var
tsort: remove unused but set variable
parents
da5b1e1c
d4cb0ee8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
src/tsort.c
+1
-3
No files found.
src/tsort.c
View file @
44b75a13
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment