fix typo in changelog
[debian/sudo] / insults.h
1 /*
2  * Copyright (c) 1994-1996,1998-1999 Todd C. Miller <Todd.Miller@courtesan.com>
3  *
4  * Permission to use, copy, modify, and distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  *
16  * $Sudo: insults.h,v 1.46 2004/02/13 21:36:43 millert Exp $
17  */
18
19 #ifndef _SUDO_INSULTS_H
20 #define _SUDO_INSULTS_H
21
22 #if defined(HAL_INSULTS) || defined(GOONS_INSULTS) || defined(CLASSIC_INSULTS) || defined(CSOPS_INSULTS)
23
24 /*
25  * Use one or more set of insults as determined by configure
26  */
27
28 char *insults[] = {
29
30 # ifdef HAL_INSULTS
31 #  include "ins_2001.h"
32 # endif
33
34 # ifdef GOONS_INSULTS
35 #  include "ins_goons.h"
36 # endif
37
38 # ifdef CLASSIC_INSULTS
39 #  include "ins_classic.h"
40 # endif
41
42 # ifdef CSOPS_INSULTS
43 #  include "ins_csops.h"
44 # endif
45
46     (char *) 0
47
48 };
49
50 /*
51  * How may I insult you?  Let me count the ways...
52  */
53 #define NOFINSULTS (sizeof(insults) / sizeof(insults[0]) - 1)
54
55 /*
56  * return a pseudo-random insult.
57  */
58 #define INSULT          (insults[time(NULL) % NOFINSULTS])
59
60 #endif /* HAL_INSULTS || GOONS_INSULTS || CLASSIC_INSULTS || CSOPS_INSULTS */
61
62 #endif /* _SUDO_INSULTS_H */