Header consolidation - main.h, misc.h, and share.h merge to advent.h.
[open-adventure.git] / misc.c
diff --git a/misc.c b/misc.c
index 93dce3b073b51f87dfcd0192b26a0b15fc2f75ad..adbccdb065bd08f3598c163d75053fdfde1f62a0 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -3,9 +3,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/time.h>
-#include "main.h"
-#include "share.h"     /* for SETUP */
-#include "misc.h"
+#include "advent.h"
 #include "funcs.h"
 #include "database.h"
 
@@ -898,7 +896,7 @@ long I, VAL;
                        IGNORE(fputs(rawbuf, stdout));
                strcpy(INLINE+1, rawbuf);
                LNLENG=0;
-               for (I=1; I<=sizeof(INLINE) && INLINE[I]!=0; I++) {
+               for (I=1; I<=(long)sizeof(INLINE) && INLINE[I]!=0; I++) {
                VAL=INLINE[I]+1;
                INLINE[I]=MAP1[VAL];
                if(INLINE[I] != 0)LNLENG=I;
@@ -937,7 +935,7 @@ L10:        if(MAP2[1] == 0)MPINIT();
 #undef MPINIT
 void fMPINIT(void) {
 long FIRST, I, J, LAST, VAL;
-static long RUNS[7][2] = {32,34, 39,46, 65,90, 97,122, 37,37, 48,57, 0,126};
+static long RUNS[7][2] = { {32,34}, {39,46}, {65,90}, {97,122}, {37,37}, {48,57}, {0,126} };
 
 
        for (I=1; I<=128; I++) {