From 7653931b6ce38edf10fe15a42244c1490e804249 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Mon, 10 Oct 2005 14:42:55 +0000 Subject: better symbol listing in RCS files; --- usr.bin/cvs/rcs.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr.bin') 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 * 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"); -- cgit v1.2.3