Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/primes usage police



details:   https://anonhg.NetBSD.org/src/rev/62f300f505b9
branches:  trunk
changeset: 332695:62f300f505b9
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sat Oct 04 13:15:50 2014 +0000

description:
usage police

diffstat:

 games/primes/primes.6 |   6 +++---
 games/primes/primes.c |  10 +++++-----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (69 lines):

diff -r 242e841e67da -r 62f300f505b9 games/primes/primes.6
--- a/games/primes/primes.6     Sat Oct 04 13:05:57 2014 +0000
+++ b/games/primes/primes.6     Sat Oct 04 13:15:50 2014 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: primes.6,v 1.4 2014/10/02 21:36:37 ast Exp $
+.\"    $NetBSD: primes.6,v 1.5 2014/10/04 13:15:50 wiz Exp $
 .\"
 .\" Copyright (c) 1989, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -43,8 +43,7 @@
 .Nd generate primes
 .Sh SYNOPSIS
 .Nm primes
-.Op Fl d
-.Op Fl h
+.Op Fl dh
 .Op Ar start Op Ar stop
 .Sh DESCRIPTION
 The
@@ -96,6 +95,7 @@
 Out of range or invalid input results in
 an appropriate error message to standard error.
 .Sh AUTHORS
+.An -nosplit
 Originally by
 .An Landon Curt Noll ,
 extended to some 64-bit primes by
diff -r 242e841e67da -r 62f300f505b9 games/primes/primes.c
--- a/games/primes/primes.c     Sat Oct 04 13:05:57 2014 +0000
+++ b/games/primes/primes.c     Sat Oct 04 13:15:50 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: primes.c,v 1.20 2014/10/02 21:36:37 ast Exp $  */
+/*     $NetBSD: primes.c,v 1.21 2014/10/04 13:15:50 wiz Exp $  */
 
 /*
  * Copyright (c) 1989, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)primes.c   8.5 (Berkeley) 5/10/95";
 #else
-__RCSID("$NetBSD: primes.c,v 1.20 2014/10/02 21:36:37 ast Exp $");
+__RCSID("$NetBSD: primes.c,v 1.21 2014/10/04 13:15:50 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -52,13 +52,13 @@
  * By Landon Curt Noll, http://www.isthe.com/chongo/index.html /\oo/\
  *
  * usage:
- *     primes [-d] [-h] [start [stop]]
+ *     primes [-dh] [start [stop]]
  *
  *     Print primes >= start and < stop.  If stop is omitted,
  *     the value SPSPMAX is assumed.  If start is
  *     omitted, start is read from standard input.
+ *             -d: print difference to previous prime, e.g. 3 (1)
  *             -h: print primes in hexadecimal
- *             -d: print difference to previous prime, e.g. 3 (1)
  *
  * validation check: there are 664579 primes between 0 and 10^7
  */
@@ -338,6 +338,6 @@
 static void
 usage(void)
 {
-       (void)fprintf(stderr, "usage: primes [-d] [-h] [start [stop]]\n");
+       (void)fprintf(stderr, "usage: primes [-dh] [start [stop]]\n");
        exit(1);
 }



Home | Main Index | Thread Index | Old Index