Correct improper function prototype for my_alphasort.

With this commit, we're back to building and running properly on openSUSE 11.4/amd64
This commit is contained in:
R. Tyler Croy 2011-04-17 21:13:48 -07:00
parent 9a5b9e2fb1
commit a3789cb7a6
1 changed files with 1 additions and 4 deletions

View File

@ -377,10 +377,7 @@ select_executables_only(const struct dirent* dent)
return 0;
}
int my_alphasort(const void* va, const void* vb) {
const struct dirent** a = (const struct dirent**)va;
const struct dirent** b = (const struct dirent**)vb;
int my_alphasort(const struct dirent **a, const struct dirent **b) {
const char* s1 = (*a)->d_name;
const char* s2 = (*b)->d_name;