diff options
author | 2006-03-10 12:26:18 +0000 | |
---|---|---|
committer | 2006-03-10 12:26:18 +0000 | |
commit | aac690260e6ec3cf658f70cd6d6cb73e862fe738 (patch) | |
tree | 81d1b5f5d838a3342f2817a92b55ede5178ab629 | |
parent | use same date format as gnu/usr.bin/rcs in error message. OK niallo@. (diff) | |
download | wireguard-openbsd-aac690260e6ec3cf658f70cd6d6cb73e862fe738.tar.xz wireguard-openbsd-aac690260e6ec3cf658f70cd6d6cb73e862fe738.zip |
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 |