diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-02-05 19:22:03 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-02-05 19:22:03 +0000 |
| commit | 0deaeaa80c40531d59ca39e17e7f718430efcb4f (patch) | |
| tree | 4f465a315c8ba98e61d3e97e5bce6d1eab6d6088 /src/scandir_win32.c | |
| parent | 9527fee96d47a62a7e3e394478effa9d7ebe2008 (diff) | |
Fixed some compiler errors on WIN32 (STR #647)
src/scandir_win32.c:
- Add casts for malloc and calloc calls.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4017 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 f02c72b23..39922cfd1 100644 --- a/src/scandir_win32.c +++ b/src/scandir_win32.c @@ -1,5 +1,5 @@ /* - * "$Id: scandir_win32.c,v 1.11.2.4.2.9 2004/04/11 04:39:00 easysw Exp $" + * "$Id$" * * WIN32 scandir function for the Fast Light Tool Kit (FLTK). * @@ -43,7 +43,7 @@ int fl_scandir(const char *dirname, struct dirent ***namelist, unsigned long ret; len = strlen(dirname); - findIn = malloc(len+5); + findIn = (char *)malloc(len+5); if (!findIn) return -1; @@ -72,7 +72,7 @@ int fl_scandir(const char *dirname, struct dirent ***namelist, } if (!select || (*select)(selectDir)) { if (nDir==NDir) { - struct dirent **tempDir = calloc(sizeof(struct dirent*), NDir+33); + struct dirent **tempDir = (struct dirent **)calloc(sizeof(struct dirent*), NDir+33); if (NDir) memcpy(tempDir, dir, sizeof(struct dirent*)*NDir); if (dir) free(dir); dir = tempDir; @@ -104,5 +104,5 @@ int fl_scandir(const char *dirname, struct dirent ***namelist, #endif /* - * End of "$Id: scandir_win32.c,v 1.11.2.4.2.9 2004/04/11 04:39:00 easysw Exp $". + * End of "$Id$". */ |
