From 8b1c71ee649fb41155da92995044e451c39ea700 Mon Sep 17 00:00:00 2001 From: dholland Date: Wed, 12 Aug 2009 07:28:40 +0000 Subject: sprinkle static --- hack/hack.objnam.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'hack/hack.objnam.c') diff --git a/hack/hack.objnam.c b/hack/hack.objnam.c index d2123e45..b3eb4679 100644 --- a/hack/hack.objnam.c +++ b/hack/hack.objnam.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.objnam.c,v 1.9 2009/06/07 20:13:18 dholland Exp $ */ +/* $NetBSD: hack.objnam.c,v 1.10 2009/08/12 07:28:41 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.objnam.c,v 1.9 2009/06/07 20:13:18 dholland Exp $"); +__RCSID("$NetBSD: hack.objnam.c,v 1.10 2009/08/12 07:28:41 dholland Exp $"); #endif /* not lint */ #include @@ -74,7 +74,10 @@ __RCSID("$NetBSD: hack.objnam.c,v 1.9 2009/06/07 20:13:18 dholland Exp $"); #define Strcpy (void) strcpy #define PREFIX 15 -char * +static char *strprepend(char *, char *); +static char *sitoa(int); + +static char * strprepend(char *s, char *pref) { int i = strlen(pref); @@ -87,7 +90,7 @@ strprepend(char *s, char *pref) return (s); } -char * +static char * sitoa(int a) { static char buf[13]; @@ -438,8 +441,8 @@ Doname(struct obj *obj) return (s); } -const char *const wrp[] = {"wand", "ring", "potion", "scroll", "gem"}; -const char wrpsym[] = {WAND_SYM, RING_SYM, POTION_SYM, SCROLL_SYM, GEM_SYM}; +static const char *const wrp[] = {"wand", "ring", "potion", "scroll", "gem"}; +static const char wrpsym[] = {WAND_SYM, RING_SYM, POTION_SYM, SCROLL_SYM, GEM_SYM}; struct obj * readobjnam(char *bp) -- cgit v1.2.3-56-ge451