diff options
author | 2010-07-16 17:53:20 +0000 | |
---|---|---|
committer | 2010-07-16 17:53:20 +0000 | |
commit | d5d0160927c9f3f93ece0957c231690d142acd9b (patch) | |
tree | 02a2af030020d4ef86f72dbab3814084052beb2e /usr.bin/rcs/diff.c | |
parent | Move the description of load averages/top line to a better place. (diff) | |
download | wireguard-openbsd-d5d0160927c9f3f93ece0957c231690d142acd9b.tar.xz wireguard-openbsd-d5d0160927c9f3f93ece0957c231690d142acd9b.zip |
Combine two diff_output lines into one, from diff.
OK stsp xsa nicm
Diffstat (limited to 'usr.bin/rcs/diff.c')
-rw-r--r-- | usr.bin/rcs/diff.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/rcs/diff.c b/usr.bin/rcs/diff.c index 4b806bb5d00..c3f9f27cb91 100644 --- a/usr.bin/rcs/diff.c +++ b/usr.bin/rcs/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.29 2010/07/15 18:23:50 ray Exp $ */ +/* $OpenBSD: diff.c,v 1.30 2010/07/16 17:53:20 ray Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. @@ -1209,10 +1209,8 @@ dump_context_vec(FILE *f1, FILE *f2, int flags) diff_output("***************"); if ((flags & D_PROTOTYPE)) { f = match_function(ixold, lowa-1, f1); - if (f != NULL) { - diff_output(" "); - diff_output("%s", f); - } + if (f != NULL) + diff_output(" %s", f); } diff_output("\n*** "); range(lowa, upb, ","); @@ -1318,10 +1316,8 @@ dump_unified_vec(FILE *f1, FILE *f2, int flags) diff_output(" @@"); if ((flags & D_PROTOTYPE)) { f = match_function(ixold, lowa-1, f1); - if (f != NULL) { - diff_output(" "); - diff_output("%s", f); - } + if (f != NULL) + diff_output(" %s", f); } diff_output("\n"); |