From 84ab46854da05e0122ab6d5e15f4eec2e1008df1 Mon Sep 17 00:00:00 2001 From: Paolo Pisati Date: Thu, 28 Jun 2018 15:32:48 +0200 Subject: [PATCH] games: fix hamurabi build by expliciting void types Signed-off-by: Paolo Pisati --- Applications/games/hamurabi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Applications/games/hamurabi.c b/Applications/games/hamurabi.c index 1523e328..85e64ffe 100644 --- a/Applications/games/hamurabi.c +++ b/Applications/games/hamurabi.c @@ -249,11 +249,11 @@ uint16_t avg_starved(const city_st *cty) { uint16_t input(void); -void retire(); -void storm_out(); -void ejected(); +void retire(void); +void storm_out(void); +void ejected(void); void game_end(const city_st *cty); -void nero_end(); +void nero_end(void); void not_so_bad_end(const city_st *cty); uint16_t input(void) { @@ -280,18 +280,18 @@ uint16_t input(void) { Someday I dream of being in curses. */ -void retire() { +void retire(void) { printf("So long for now.\n"); exit(EXIT_SUCCESS); } -void storm_out() { +void storm_out(void) { printf("Hamurabi: I cannot do what you wish.\n"); printf("Get yourself another steward!!!!!\n"); retire(); } -void ejected() { +void ejected(void) { printf("Due to this extreme mismanagement you have not only\n"); printf("been impeached and thrown out of office but you have\n"); printf("also been declared 'National Fink' !!\n"); @@ -312,7 +312,7 @@ void game_end(const city_st *cty) { if ((avg_starved(cty)>3) || (l<10)) not_so_bad_end(cty); } -void nero_end() { +void nero_end(void) { printf("Your heavy handed performance smacks of Nero and Ivan IV.\n"); printf("The people (remaining) find you an unpleasant ruler, and,\n"); printf("frankly, hate your guts!\n"); -- 2.34.1