From: Markus Armbruster Date: Tue, 22 Apr 2008 19:56:35 +0000 (+0200) Subject: Give try_supply_commod() internal linkage X-Git-Tag: v4.3.14~24 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=6709931d513777ef6374715f70899d6dcd5822e8 Give try_supply_commod() internal linkage --- diff --git a/include/prototypes.h b/include/prototypes.h index 9921189e8..5edadd969 100644 --- a/include/prototypes.h +++ b/include/prototypes.h @@ -690,7 +690,6 @@ extern void snxtsct_dist(struct nstr_sect *, coord, coord, int); extern void resupply_all(struct lndstr *); extern void resupply_commod(struct lndstr *, i_type); extern int supply_commod(int, int, int, i_type, int); -extern int try_supply_commod(int, int, int, i_type, int); extern int has_supply(struct lndstr *); /* takeover.c */ extern void takeover_land(struct lndstr *, natid, int); diff --git a/src/lib/subs/supply.c b/src/lib/subs/supply.c index 521b0f965..96b2d2cc3 100644 --- a/src/lib/subs/supply.c +++ b/src/lib/subs/supply.c @@ -132,7 +132,7 @@ supply_commod(int own, int x, int y, i_type type, int total_wanted) /* * Just return the number you COULD get, without doing it */ -int +static int try_supply_commod(int own, int x, int y, i_type type, int total_wanted) { if (total_wanted < 0)