this is a static variable, and it is bad

This commit is contained in:
Enno Rehling 2016-02-25 23:11:44 +01:00
parent 81a2dd9d21
commit ce867af34f
2 changed files with 3 additions and 2 deletions

View file

@ -16,6 +16,7 @@ MACHINE=`uname -m`
[ -z "$CC" ] && [ ! -z `which cc` ] && CC="cc"
BIN_DIR="$ROOT/build-$MACHINE-$CC-$BUILD"
mkdir -p $BIN_DIR
rm -f $BUILD
ln -sf $BIN_DIR $BUILD
MACHINE=$(gcc -dumpmachine)

View file

@ -57,7 +57,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <ctype.h>
#define MAXENTITYHASH 7919
curse *cursehash[MAXENTITYHASH];
static curse *cursehash[MAXENTITYHASH];
void c_setflag(curse * c, unsigned int flags)
{