From a56b0836c5c779b0b19e24a01e21548baf9fc9d0 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 15 Mar 2026 09:53:11 +0100 Subject: Fixed potential uncovered code paths --- FICS/playerdb.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'FICS/playerdb.c') diff --git a/FICS/playerdb.c b/FICS/playerdb.c index cffd5b0..35c9f16 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -2269,6 +2269,9 @@ player_decline_offers(int p, int p1, int offerType) pprintf(p, "You decline the partnership request from " "%s.\n", p2Name); break; + default: + warnx("%s: invalid type %d", __func__, type); + break; } /* switch */ player_remove_request(p2, p, type); @@ -2389,6 +2392,9 @@ player_withdraw_offers(int p, int p1, int offerType) pprintf(p, "You withdraw the partnership request to %s." "\n", p2Name); break; + default: + warnx("%s: invalid type %d", __func__, type); + break; } /* switch */ player_remove_request(p, p2, type); -- cgit v1.2.3