OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
099c195
)
Turns out alphasort was totally broken. This fixed one works.
author
Eric Andersen
<andersen@codepoet.org>
Tue, 8 May 2001 18:09:01 +0000
(18:09 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Tue, 8 May 2001 18:09:01 +0000
(18:09 -0000)
-Erik
libc/misc/dirent/alphasort.c
patch
|
blob
|
history
diff --git
a/libc/misc/dirent/alphasort.c
b/libc/misc/dirent/alphasort.c
index
f0ff049
..
d7a1d8d
100644
(file)
--- a/
libc/misc/dirent/alphasort.c
+++ b/
libc/misc/dirent/alphasort.c
@@
-1,10
+1,9
@@
#include <string.h>
#include "dirstream.h"
-int alphasort(const
__ptr_t __e1, const __ptr_t __e2
)
+int alphasort(const
void * a, const void * b
)
{
- const struct dirent *a = __e1;
- const struct dirent *b = __e2;
- return (strcmp(a->d_name, b->d_name));
+ return strcmp ((*(const struct dirent **) a)->d_name,
+ (*(const struct dirent **) b)->d_name);
}