From 3117ef9c7a575cd8a2fdb48d9f369c38476d376c Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 22 Feb 2008 21:53:24 +0100 Subject: [PATCH] Give unit_map() internal linkage --- include/prototypes.h | 1 - src/lib/subs/maps.c | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/prototypes.h b/include/prototypes.h index 080bebcc..9dd12a0a 100644 --- a/include/prototypes.h +++ b/include/prototypes.h @@ -480,7 +480,6 @@ extern int islist(char *); /* maps.c */ extern int do_map(int bmap, int unit_type, char *arg1, char *arg2); extern int draw_map(int, char, int, struct nstr_sect *); -extern int unit_map(int, int, struct nstr_sect *, char *); extern int display_region_map(int bmap, int unit_type, coord curx, coord cury, char *arg); extern int bmaps_intersect(natid, natid); diff --git a/src/lib/subs/maps.c b/src/lib/subs/maps.c index 4990e5ab..5d2eab65 100644 --- a/src/lib/subs/maps.c +++ b/src/lib/subs/maps.c @@ -54,7 +54,8 @@ #include "xy.h" static int bmnxtsct(struct nstr_sect *); -static char map_char(int type, natid own, int owner_or_god); +static char map_char(int, natid, int); +static int unit_map(int, int, struct nstr_sect *, char *); int do_map(int bmap, int unit_type, char *arg, char *map_flags_arg) @@ -341,7 +342,7 @@ map_char(int type, natid own, int owner_or_god) return '?'; } -int +static int unit_map(int unit_type, int uid, struct nstr_sect *nsp, char *originp) { struct empobj *gp;