Add __attribute__((__noreturn__)) to various function prototypes in games/.
[dragonfly.git] / games / hunt / hunt / client.h
blob695806ac0ce359f72da4017f03ca7d43b72aabe0
1 /*-
2 * Copyright (c) 1983-2003, Regents of the University of California.
3 * All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. Neither the name of the University of California, San Francisco nor
15 * the names of its contributors may be used to endorse or promote
16 * products derived from this software without specific prior written
17 * permission.
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
20 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 * $OpenBSD: client.h,v 1.4 2003/06/17 00:44:21 pjanzen Exp $
34 /* hunt.c */
35 extern FLAG Am_monitor; /* -m flag */
36 extern FLAG no_beep; /* -b flag */
37 extern char * Send_message; /* -w message */
38 extern int Socket; /* connection to server */
39 extern char map_key[256]; /* HUNT envvar */
41 void bad_con(void) __dead2;
42 void bad_ver(void) __dead2;
43 void intr(int);
45 /* connect.c */
46 void do_connect(char *, u_int8_t, u_int32_t);
48 /* playit.c */
49 void playit(void);
50 void do_message(void);
51 int quit(int);
53 /* otto.c */
54 extern int Otto_mode;
55 int otto(int, int, char, char *, size_t);
56 int otto_quit(int);