projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35cb740
)
Replace deprecated libc function with its totally renamed equivalent.
author
Rob Landley
<rob@landley.net>
Sat, 10 Mar 2012 02:33:16 +0000
(20:33 -0600)
committer
Rob Landley
<rob@landley.net>
Sat, 10 Mar 2012 02:33:16 +0000
(20:33 -0600)
toys/sort.c
patch
|
blob
|
history
diff --git
a/toys/sort.c
b/toys/sort.c
index
89a9702
..
07a5716
100644
(file)
--- a/
toys/sort.c
+++ b/
toys/sort.c
@@
-359,7
+359,7
@@
void sort_main(void)
// Which flag is this?
optlist = toys.which->options;
- temp2 =
index
(optlist, *temp);
+ temp2 =
strchr
(optlist, *temp);
flag = (1<<(optlist-temp2+strlen(optlist)-1));
// Was it a flag that can apply to a key?