Fix uip/whom.c for C89 compatibility
[mmh] / uip / spost.c
index 4e9e7ce..39d8ada 100644 (file)
@@ -39,6 +39,7 @@ static struct swit switches[] = {
        { NULL, 0 }
 };
 
        { NULL, 0 }
 };
 
+char *version=VERSION;
 
 /* flags for headers->flags */
 #define HNOP  0x0000  /* just used to keep .set around */
 
 /* flags for headers->flags */
 #define HNOP  0x0000  /* just used to keep .set around */
@@ -268,7 +269,7 @@ main(int argc, char **argv)
        }
        fclose(in);
 
        }
        fclose(in);
 
-       if (status != FILEEOF2) {
+       if (state != FILEEOF2) {
                adios(EX_IOERR, "m_getfld2", "Error while reading body");
        }
 
                adios(EX_IOERR, "m_getfld2", "Error while reading body");
        }