Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/glob.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -p -r1.29 -r1.30 --- src/lib/libc/gen/glob.c 2011/01/22 16:24:44 1.29 +++ src/lib/libc/gen/glob.c 2011/05/14 22:44:06 1.30 @@ -1,4 +1,4 @@ -/* $NetBSD: glob.c,v 1.29 2011/01/22 16:24:44 christos Exp $ */ +/* $NetBSD: glob.c,v 1.30 2011/05/14 22:44:06 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)glob.c 8.3 (Berkeley) 10/13/93"; #else -__RCSID("$NetBSD: glob.c,v 1.29 2011/01/22 16:24:44 christos Exp $"); +__RCSID("$NetBSD: glob.c,v 1.30 2011/05/14 22:44:06 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -789,7 +789,7 @@ glob3(Char *pathbuf, Char *pathend, Char if (pglob->gl_flags & GLOB_ALTDIRFUNC) readdirfunc = pglob->gl_readdir; else - readdirfunc = (struct dirent *(*)__P((void *))) readdir; + readdirfunc = (struct dirent *(*)(void *)) readdir; while ((dp = (*readdirfunc)(dirp)) != NULL) { u_char *sc; Char *dc; @@ -799,7 +799,8 @@ glob3(Char *pathbuf, Char *pathend, Char errno = 0; *pathend++ = SEP; *pathend = EOS; - return GLOB_NOSPACE; + error = GLOB_NOSPACE; + break; } /*