Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/fmt use putchar consistently.
details: https://anonhg.NetBSD.org/src/rev/11fc279f0032
branches: trunk
changeset: 586375:11fc279f0032
user: christos <christos%NetBSD.org@localhost>
date: Fri Dec 16 04:20:09 2005 +0000
description:
use putchar consistently.
diffstat:
usr.bin/fmt/fmt.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (55 lines):
diff -r ed501d3b6001 -r 11fc279f0032 usr.bin/fmt/fmt.c
--- a/usr.bin/fmt/fmt.c Fri Dec 16 04:02:14 2005 +0000
+++ b/usr.bin/fmt/fmt.c Fri Dec 16 04:20:09 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fmt.c,v 1.20 2005/12/15 22:37:37 christos Exp $ */
+/* $NetBSD: fmt.c,v 1.21 2005/12/16 04:20:09 christos Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)fmt.c 8.1 (Berkeley) 7/20/93";
#endif
-__RCSID("$NetBSD: fmt.c,v 1.20 2005/12/15 22:37:37 christos Exp $");
+__RCSID("$NetBSD: fmt.c,v 1.21 2005/12/16 04:20:09 christos Exp $");
#endif /* not lint */
#include <ctype.h>
@@ -170,13 +170,13 @@
while (cp2 > cp && isspace((unsigned char)*cp2))
cp2--;
if (cp == cp2)
- fputc('\n', stdout);
+ putchar('\n');
col = cp2 - cp;
if (goal_length > col)
for (c = 0; c < (goal_length - col) / 2; c++)
- fputc(' ', stdout);
+ putchar(' ');
while (cp <= cp2)
- fputc(*cp++, stdout);
+ putchar(*cp++);
putchar('\n');
}
}
@@ -441,15 +441,15 @@
b = b % 8;
if (t > 0)
do
- putc('\t', stdout);
+ putchar('\t');
while (--t);
if (b > 0)
do
- putc(' ', stdout);
+ putchar(' ');
while (--b);
while (*cp)
- putc(*cp++, stdout);
- putc('\n', stdout);
+ putchar(*cp++);
+ putchar('\n');
}
/*
Home |
Main Index |
Thread Index |
Old Index