forked from github/server
this is a static variable, and it is bad
This commit is contained in:
parent
81a2dd9d21
commit
ce867af34f
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue