diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-15 09:53:11 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-15 09:53:11 +0100 |
| commit | a56b0836c5c779b0b19e24a01e21548baf9fc9d0 (patch) | |
| tree | 04153fc572bdfcafd4f23aaa085c875da833cd52 /FICS | |
| parent | ccb924a5e118fec4f4ed030610c09dca0c527989 (diff) | |
Fixed potential uncovered code paths
Diffstat (limited to 'FICS')
| -rw-r--r-- | FICS/playerdb.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |
