From 72d1391dbb92a183286a4710f035bb79e00b3aea Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 9 Mar 1999 20:56:54 +0000 Subject: scandir.c used a variable named "new", which is valid ANSI C but apparently not accepted by EGCS (EGCS BUG!)... git-svn-id: file:///fltk/svn/fltk/trunk@396 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/scandir.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scandir.c b/src/scandir.c index 27f950486..b4c23bc0e 100644 --- a/src/scandir.c +++ b/src/scandir.c @@ -73,19 +73,19 @@ scandir (const char *dir, struct dirent ***namelist, if (i == vsize) { - struct dirent **new; + struct dirent **newv; if (vsize == 0) vsize = 10; else vsize *= 2; - new = (struct dirent **) realloc (v, vsize * sizeof (*v)); - if (new == NULL) + newv = (struct dirent **) realloc (v, vsize * sizeof (*v)); + if (newv == NULL) { lose: errno = ENOMEM; break; } - v = new; + v = newv; } #define _D_EXACT_NAMLEN(d) (strlen ((d)->d_name)) -- cgit v1.2.3