summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/logmsg.c
diff options
context:
space:
mode:
authorjfb <jfb@openbsd.org>2005-04-18 21:02:49 +0000
committerjfb <jfb@openbsd.org>2005-04-18 21:02:49 +0000
commitbb02993716ad42bd207d749bbca5daefffd99503 (patch)
treeaac129d83355949acdbba53f5782ce86ea03222e /usr.bin/cvs/logmsg.c
parentextra paranoia, from a discussion with joerg (diff)
downloadwireguard-openbsd-bb02993716ad42bd207d749bbca5daefffd99503.tar.xz
wireguard-openbsd-bb02993716ad42bd207d749bbca5daefffd99503.zip
Modify the CVSFILE structure using a union to keep information about
both files and directories. We can now keep the revision number for regular files, and don't need to fetch the appropriate entry in the command callbacks. This saves a huge amount of parsing on Entries files. ok joris@
Diffstat (limited to 'usr.bin/cvs/logmsg.c')
-rw-r--r--usr.bin/cvs/logmsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/logmsg.c b/usr.bin/cvs/logmsg.c
index 232ecc93335..759e1625510 100644
--- a/usr.bin/cvs/logmsg.c
+++ b/usr.bin/cvs/logmsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logmsg.c,v 1.12 2005/02/26 21:51:33 david Exp $ */
+/* $OpenBSD: logmsg.c,v 1.13 2005/04/18 21:02:50 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -219,7 +219,7 @@ cvs_logmsg_get(const char *dir, struct cvs_flist *added,
fprintf(fp, "%s %s Files:", CVS_LOGMSG_PREFIX,
cvs_logmsg_ops[i]);
nl = 1;
- TAILQ_FOREACH(cvsfp, files[i], cf_list) {
+ SIMPLEQ_FOREACH(cvsfp, files[i], cf_list) {
/* take the space into account */
cvs_file_getpath(cvsfp, fpath, sizeof(fpath));
len = strlen(fpath) + 1;