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_win32.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_win32.c')
| -rw-r--r-- | src/scandir_win32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scandir_win32.c b/src/scandir_win32.c index 6535cfc12..1df441aea 100644 --- a/src/scandir_win32.c +++ b/src/scandir_win32.c @@ -34,8 +34,8 @@ extern "C" #endif int scandir(const char *dirname, 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 **)) { int len = strlen(dirname); char *findIn = new char[len+5]; strcpy(findIn, dirname); @@ -100,10 +100,10 @@ int scandir(const char *dirname, struct dirent ***namelist, return nDir; } -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); } // -// End of "$Id: scandir_win32.c,v 1.4 1998/10/19 20:46:58 mike Exp $". +// End of "$Id: scandir_win32.c,v 1.5 1998/10/20 23:58:32 mike Exp $". // |
