--- ray/src/common/loadvars.c 2003/04/23 00:52:33 2.11 +++ ray/src/common/loadvars.c 2003/07/27 22:12:01 2.13 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: loadvars.c,v 2.11 2003/04/23 00:52:33 greg Exp $"; +static const char RCSid[] = "$Id: loadvars.c,v 2.13 2003/07/27 22:12:01 schorsch Exp $"; #endif /* * Routines for loading and checking variables from file. @@ -10,6 +10,8 @@ static const char RCSid[] = "$Id: loadvars.c,v 2.11 20 #include #include #include + +#include "standard.h" #include "vars.h" #define NOCHAR 127 /* constant for character to delete */ @@ -88,7 +90,7 @@ VARIABLE *(*mv)(); if (vp == NULL) return(-1); /* assign new value */ - if (i = vp->nass) { + if ( (i = vp->nass) ) { cp = vp->value; while (i--) while (*cp++) @@ -138,7 +140,7 @@ register int n; { register char *cp; - if (vval(vn) == NULL | n < 0 | n >= vdef(vn)) + if ((vval(vn) == NULL) | (n < 0) | (n >= vdef(vn))) return(NULL); cp = vval(vn); while (n--)