Module Name: src
Committed By: sjg
Date: Wed Aug 10 18:49:40 UTC 2016
Modified Files:
src/usr.bin/make: meta.c
Log Message:
Use Lst_FindFrom and Lst_Succ(ln) to find next entry in missingFiles.
To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/usr.bin/make/meta.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/meta.c
diff -u src/usr.bin/make/meta.c:1.64 src/usr.bin/make/meta.c:1.65
--- src/usr.bin/make/meta.c:1.64 Wed Aug 10 18:25:00 2016
+++ src/usr.bin/make/meta.c Wed Aug 10 18:49:40 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: meta.c,v 1.64 2016/08/10 18:25:00 sjg Exp $ */
+/* $NetBSD: meta.c,v 1.65 2016/08/10 18:49:40 sjg Exp $ */
/*
* Implement 'meta' mode.
@@ -1196,14 +1196,16 @@ meta_oodate(GNode *gn, Boolean oodate)
/* remove any missingFiles entries that match p */
if ((ln = Lst_Find(missingFiles, p,
path_match)) != NULL) {
+ LstNode nln;
char *tp;
do {
+ nln = Lst_FindFrom(missingFiles, Lst_Succ(ln),
+ p, path_match);
tp = Lst_Datum(ln);
Lst_Remove(missingFiles, ln);
free(tp);
- } while ((ln = Lst_Find(missingFiles, p,
- path_match)) != NULL);
+ } while ((ln = nln) != NULL);
}
}
if (buf[0] == 'M') {