if (str == 0)
str = "";
- return strcpy(Malloc(strlen(str) + 1), str);
+ return strcpy(Malloc((unsigned)strlen(str) + 1), str);
}
EnHash(id)
}
}
+/*ARGSUSED*/
CheckId(id, len)
char *id;
{
if ((fp = fopen(fn, "r")) == NULL) {
fprintf(stderr, "%s: cannot read file \"%s\"\n", ProgName, fn);
- return 0;
+ return;
}
while ((c = getc(fp)) != EOF) {
if (str == 0) {
str = "";
}
- return strcpy(Malloc(strlen(str) + 1), str);
+ return strcpy(Malloc((unsigned)strlen(str) + 1), str);
}
struct idf *
nlp = nlp->next;
}
- (nnlp = new_namelist())->name = strcpy(Malloc(strlen(nm) + 1), nm);
+ (nnlp = new_namelist())->name = strcpy(Malloc((unsigned)strlen(nm) + 1), nm);
if (lnlp) {
nnlp->next = lnlp->next;
}
}
+/*ARGSUSED*/
main(argc, argv)
char *argv[];
{
return 0;
}
+extern char *fgets();
+
dofile(fn)
char *fn;
{
- char *fgets(), buf[BSIZ];
+ char buf[BSIZ];
FILE *fp;
char *nm, *include_line();
while (fgets(buf, BSIZ, fp) != NULL)
if (nm = include_line(buf)) {
add_name(nm);
- dofile(nm);
+ if (dofile(nm)) ;
}
fclose(fp);
if (str == 0)
str = "";
- return strcpy(Malloc(strlen(str) + 1), str);
+ return strcpy(Malloc((unsigned)strlen(str) + 1), str);
}
EnHash(id)