-static char *sccsid = "@(#)misc.c 4.3 (Berkeley) 85/08/30";
+static char *sccsid = "@(#)misc.c 4.5 (Berkeley) 87/10/22";
#include "defs"
FSTATIC struct nameblock *hashtab[HASHSIZE];
eqsign(a) /*look for arguments with equal signs but not colons */
char *a;
{
-register char *s, *t;
+register char *s, *t, c;
while(*a == ' ') ++a;
for(s=a ; *s!='\0' && *s!=':' ; ++s)
if(*s == '=')
{
for(t = a ; *t!='=' && *t!=' ' && *t!='\t' ; ++t );
+ c = *t;
*t = '\0';
for(++s; *s==' ' || *s=='\t' ; ++s);
setvar(a, copys(s));
+ *t = c;
return(YES);
}
char *s, *t;
{
char buf[BUFSIZ];
-sprintf(buf, s, t);
+(void)sprintf(buf, s, t);
fatal(buf);
}
char buf[50];
extern int yylineno;
-sprintf(buf, "line %d: %s", yylineno, s);
+(void)sprintf(buf, "line %d: %s", yylineno, s);
fatal(buf);
}