diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-10-10 14:42:55 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-10-10 14:42:55 +0000 |
commit | 7653931b6ce38edf10fe15a42244c1490e804249 (patch) | |
tree | 57ac9dced248e7502c40d22c78b6c5474a915b71 /usr.bin/cvs/rcs.c | |
parent | 79c0b52198bb8b7e6adfb70cf560b148d627261a (diff) |
better symbol listing in RCS files;
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r-- | usr.bin/cvs/rcs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c index 34698f31855..bf4ee420698 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.84 2005/10/10 14:16:03 joris Exp $ */ +/* $OpenBSD: rcs.c,v 1.85 2005/10/10 14:42:54 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -500,13 +500,11 @@ rcs_write(RCSFILE *rfp) } fputs(";\n", fp); - fprintf(fp, "symbols\n"); + fprintf(fp, "symbols"); TAILQ_FOREACH(symp, &(rfp->rf_symbols), rs_list) { rcsnum_tostr(symp->rs_num, numbuf, sizeof(numbuf)); snprintf(buf, sizeof(buf), "%s:%s", symp->rs_name, numbuf); - fprintf(fp, "\t%s", buf); - if (symp != TAILQ_LAST(&(rfp->rf_symbols), rcs_slist)) - fputc('\n', fp); + fprintf(fp, "\n\t%s", buf); } fprintf(fp, ";\n"); |