freebsd-ports/misc/shuffle/files/patch-shuffle.c
David W. Chapman Jr. 5fb6963851 Add, shuffle(1) from NetBSD, a program that prints a random
permutation of its input lines

PR:		28089
Submitted by:	dd
Obtained from:	NetBSD
2001-06-14 05:43:44 +00:00

15 lines
317 B
C

--- shuffle.c.orig Wed Jun 13 22:07:36 2001
+++ shuffle.c Wed Jun 13 22:07:36 2001
@@ -133,10 +133,11 @@
static void
usage()
{
+ extern const char *__progname;
(void) fprintf(stderr,
"Usage: %s [-f <filename>] [-n <number>] [-p <number>] [<arg> ...]\n",
- getprogname());
+ __progname);
exit(1);
}