diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-10-20 23:58:32 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-10-20 23:58:32 +0000 |
| commit | 0f60ac9155a721085315389b65c73380e001249f (patch) | |
| tree | 86bd321c3b933643754527c4dbe27a7fea34673f /src/scandir.c | |
| parent | 74858f12e3d2c25ce53aed7169178615596ae7aa (diff) | |
Fixed definitions of scandir, numericsort, and alphasort (no const!)
git-svn-id: file:///fltk/svn/fltk/trunk@26 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/scandir.c')
| -rw-r--r-- | src/scandir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scandir.c b/src/scandir.c index e3b60bedf..da3fefaa7 100644 --- a/src/scandir.c +++ b/src/scandir.c @@ -50,8 +50,8 @@ USA. */ int scandir (const char *dir, struct dirent ***namelist, - int (*select)(const struct dirent *), - int (*compar)(const struct dirent **, const struct dirent **)) + int (*select)(struct dirent *), + int (*compar)(struct dirent **, struct dirent **)) { DIR *dp = opendir (dir); struct dirent **v = NULL; @@ -120,7 +120,7 @@ scandir (const char *dir, struct dirent ***namelist, return i; } -int alphasort (const struct dirent **a, const struct dirent **b) { +int alphasort (struct dirent **a, struct dirent **b) { return strcmp ((*a)->d_name, (*b)->d_name); } |
