OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00e6da9
)
fixup code style
author
Joyounger
<aquanox@163.com>
Tue, 23 May 2017 16:36:35 +0000
(
00:36
+0800)
committer
Rob Landley
<rob@landley.net>
Tue, 23 May 2017 20:29:18 +0000
(15:29 -0500)
Signed-off-by: Joyounger <aquanox@163.com>
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
f8b9522
..
fcb8702
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-49,7
+49,7
@@
struct toy_list *toy_find(char *name)
if (middle<bottom || middle>top) return NULL;
result = strcmp(name,toy_list[middle].name);
if (!result) return toy_list+middle;
- if (result<0) top
=
--middle;
+ if (result<0) top
=
--middle;
else bottom = ++middle;
}
}