diff --git a/s/cmake-init b/s/cmake-init index 05bae5540..35378d6a5 100755 --- a/s/cmake-init +++ b/s/cmake-init @@ -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) diff --git a/src/kernel/curse.c b/src/kernel/curse.c index 66890475e..597b7340d 100644 --- a/src/kernel/curse.c +++ b/src/kernel/curse.c @@ -57,7 +57,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #define MAXENTITYHASH 7919 -curse *cursehash[MAXENTITYHASH]; +static curse *cursehash[MAXENTITYHASH]; void c_setflag(curse * c, unsigned int flags) { @@ -829,4 +829,4 @@ void free_curses(void) { for (i = 0; i != MAXCTHASH; ++i) { ql_free(cursetypes[i]); } -} \ No newline at end of file +}