From 61d632fc96e44e99c77c0c7a9a58c943461fa7c7 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 29 Feb 2008 07:08:59 +0100 Subject: [PATCH] Give logx() internal linkage --- include/prototypes.h | 1 - src/lib/update/nat.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/prototypes.h b/include/prototypes.h index 61b63276..13f38645 100644 --- a/include/prototypes.h +++ b/include/prototypes.h @@ -747,7 +747,6 @@ extern void pln_do_upd_mob(struct plnstr *pp); /* move_sat.c */ extern void move_sat(struct plnstr *); /* nat.c */ -extern double logx(double, double); extern void prod_nat(int); /* nav_ship.c */ extern int nav_ship(struct shpstr *); diff --git a/src/lib/update/nat.c b/src/lib/update/nat.c index 6bf09c85..e7d50b0e 100644 --- a/src/lib/update/nat.c +++ b/src/lib/update/nat.c @@ -76,7 +76,7 @@ float levels[MAXNOC][4]; * into tech plants overnight... */ -double +static double logx(double d, double base) { if (base == 1.0)