]> git.pond.sub.org Git - empserver/commitdiff
Give try_supply_commod() internal linkage
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 22 Apr 2008 19:56:35 +0000 (21:56 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 22 Apr 2008 19:56:35 +0000 (21:56 +0200)
include/prototypes.h
src/lib/subs/supply.c

index 9921189e86c0e5023a836f89dd56e448143fe8e0..5edadd9697c3cdeb6d3d55451a3dab19b145f993 100644 (file)
@@ -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 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);
 extern int has_supply(struct lndstr *);
 /* takeover.c */
 extern void takeover_land(struct lndstr *, natid, int);
index 521b0f9654f1f07f098c7a8a101a7d7af14945c0..96b2d2cc314dcb7f8e64725932d37c4b4b23cbc9 100644 (file)
@@ -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
  */
 /*
  * 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)
 try_supply_commod(int own, int x, int y, i_type type, int total_wanted)
 {
     if (total_wanted < 0)