diff options
| author | christos <christos@NetBSD.org> | 1997-10-18 20:03:05 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1997-10-18 20:03:05 +0000 |
| commit | f73f1009084e75624e3bc00fef9cf4749de80dcc (patch) | |
| tree | 10cc39737f667f056c5537c3fba7cf4d2a832c9d /larn/fortune.c | |
| parent | 39d5db4411fe42946cd3d94eb7d275f3f453d6aa (diff) | |
| download | bsdgames-darwin-f73f1009084e75624e3bc00fef9cf4749de80dcc.tar.gz bsdgames-darwin-f73f1009084e75624e3bc00fef9cf4749de80dcc.zip | |
Tons of changes; re-indent, use termios, fix warnings, add prototypes...
Games is almost clean; only hack is left...
Diffstat (limited to 'larn/fortune.c')
| -rw-r--r-- | larn/fortune.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/larn/fortune.c b/larn/fortune.c index 54a7a955..7f41c8c0 100644 --- a/larn/fortune.c +++ b/larn/fortune.c @@ -1,3 +1,5 @@ +/* $NetBSD: fortune.c,v 1.4 1997/10/18 20:03:18 christos Exp $ */ + /*- * Copyright (c) 1991 The Regents of the University of California. * All rights reserved. @@ -31,21 +33,26 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint #if 0 -static char sccsid[] = "@(#)fortune.c 5.5 (Berkeley) 6/10/91"; +static char sccsid[] = "@(#)fortune.c 5.5 (Berkeley) 6/10/91"; #else -static char rcsid[] = "$NetBSD: fortune.c,v 1.3 1995/03/23 08:33:23 cgd Exp $"; +__RCSID("$NetBSD: fortune.c,v 1.4 1997/10/18 20:03:18 christos Exp $"); #endif -#endif /* not lint */ +#endif /* not lint */ + +#include <stdlib.h> +#include "header.h" +#include "extern.h" /* fortune.c Larn is copyrighted 1986 by Noah Morgan. */ /* * function to return a random fortune from the fortune file */ -char *flines[] = { +char *flines[] = { "gem value = gem * 2 ^ perfection", "sitting down can have unexpected results", "don't pry into the affairs of others", |
