version 1.4, 2004/07/22 01:25:24 |
version 1.5, 2005/03/10 16:58:57 |
|
|
SLIST_FOREACH(ae, &autos, next) { |
SLIST_FOREACH(ae, &autos, next) { |
if (fnmatch(ae->pattern, fname, 0) == 0) { |
if (fnmatch(ae->pattern, fname, 0) == 0) { |
if (used >= have) { |
if (used >= have) { |
/* |
|
* XXX - realloc(NULL, ...) is not really |
|
* portable |
|
*/ |
|
npfl = realloc(pfl, (have + 8 + 1) * sizeof(PF)); |
npfl = realloc(pfl, (have + 8 + 1) * sizeof(PF)); |
if (npfl == NULL) |
if (npfl == NULL) |
panic("out of memory"); |
panic("out of memory"); |