-int pit_num = PIT_COUNT; /* # pits in cave */
-int bat_num = BAT_COUNT; /* # bats */
-int room_num = ROOMS_IN_CAVE; /* # rooms in cave */
-int link_num = LINKS_IN_ROOM; /* links per room */
-int arrow_num = NUMBER_OF_ARROWS; /* arrow inventory */
-
-char answer[20]; /* user input */
-
-int bats_nearby __P((void));
-void cave_init __P((void));
-void clear_things_in_cave __P((void));
-void display_room_stats __P((void));
-int getans __P((const char *));
-void initialize_things_in_cave __P((void));
-void instructions __P((void));
-int int_compare __P((const void *, const void *));
-void jump __P((int));
-void kill_wump __P((void));
-int main __P((int, char **));
-int move_to __P((const char *));
-void move_wump __P((void));
-void no_arrows __P((void));
-void pit_kill __P((void));
-int pit_nearby __P((void));
-void pit_survive __P((void));
-int shoot __P((char *));
-void shoot_self __P((void));
-int take_action __P((void));
-void usage __P((void));
-void wump_kill __P((void));
-int wump_nearby __P((void));
+static int pit_num = PIT_COUNT; /* # pits in cave */
+static int bat_num = BAT_COUNT; /* # bats */
+static int room_num = ROOMS_IN_CAVE; /* # rooms in cave */
+static int link_num = LINKS_IN_ROOM; /* links per room */
+static int arrow_num = NUMBER_OF_ARROWS;/* arrow inventory */
+
+static char answer[20]; /* user input */
+
+int main(int, char **);
+static int bats_nearby(void);
+static void cave_init(void);
+static void clear_things_in_cave(void);
+static void display_room_stats(void);
+static int gcd(int, int);
+static int getans(const char *);
+static void initialize_things_in_cave(void);
+static void instructions(void);
+static int int_compare(const void *, const void *);
+static void jump(int);
+static void kill_wump(void);
+static int move_to(const char *);
+static void move_wump(void);
+static void no_arrows(void);
+static void pit_kill(void);
+static int pit_nearby(void);
+static void pit_survive(void);
+static int shoot(char *);
+static void shoot_self(void);
+static int take_action(void);
+static void usage(void) __dead;
+static void wump_kill(void);
+static int wump_nearby(void);