Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/shuffle make -0 actually work
details: https://anonhg.NetBSD.org/src/rev/49f0335f26a2
branches: trunk
changeset: 550770:49f0335f26a2
user: christos <christos%NetBSD.org@localhost>
date: Thu Aug 21 00:01:13 2003 +0000
description:
make -0 actually work
diffstat:
usr.bin/shuffle/shuffle.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 60eab05a1180 -r 49f0335f26a2 usr.bin/shuffle/shuffle.c
--- a/usr.bin/shuffle/shuffle.c Thu Aug 21 00:00:52 2003 +0000
+++ b/usr.bin/shuffle/shuffle.c Thu Aug 21 00:01:13 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: shuffle.c,v 1.13 2003/08/20 23:37:51 christos Exp $ */
+/* $NetBSD: shuffle.c,v 1.14 2003/08/21 00:01:13 christos Exp $ */
/*
* Copyright (c) 1998
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: shuffle.c,v 1.13 2003/08/20 23:37:51 christos Exp $");
+__RCSID("$NetBSD: shuffle.c,v 1.14 2003/08/21 00:01:13 christos Exp $");
#endif /* not lint */
#include <sys/time.h>
@@ -254,9 +254,10 @@
for (i = 0; i < nlines; i++) {
if (nflag)
- printf("%ld%c", (long)shuffle[i], sep);
+ printf("%ld", (long)shuffle[i]);
else
- printf("%s%c", lines[shuffle[i]], sep);
+ printf("%s", lines[shuffle[i]]);
+ putc(sep, stdout);
}
return 0;
Home |
Main Index |
Thread Index |
Old Index