diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-03-10 12:26:19 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-03-10 12:26:19 +0000 |
commit | 8dcd93695ee683bdf591ce49487fca56bd433c65 (patch) | |
tree | b9c13e50b55c79f18e1c3b534a71694e340dc25f | |
parent | 7a8317d39d0281ff69e9f567f4c5dc11eaee7e87 (diff) |
fix a stupid mistake in cvs_worklist_clean() while loop.
ok joris@
-rw-r--r-- | usr.bin/cvs/worklist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/worklist.c b/usr.bin/cvs/worklist.c index f7f887d4358..1c15db82b01 100644 --- a/usr.bin/cvs/worklist.c +++ b/usr.bin/cvs/worklist.c @@ -1,4 +1,4 @@ -/* $OpenBSD: worklist.c,v 1.2 2006/03/10 00:48:56 joris Exp $ */ +/* $OpenBSD: worklist.c,v 1.3 2006/03/10 12:26:18 niallo Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -84,8 +84,8 @@ cvs_worklist_clean(struct cvs_wklhead *list, void (*cb)(struct cvs_worklist *)) { struct cvs_worklist *wkl; - while ((wkl = SLIST_FIRST(list)) != NULL) - cb(wkl); + SLIST_FOREACH(wkl, list, wkl_list) + cb(wkl); } void |