delinted
authorceriel <none@none>
Fri, 7 Oct 1988 10:26:37 +0000 (10:26 +0000)
committerceriel <none@none>
Fri, 7 Oct 1988 10:26:37 +0000 (10:26 +0000)
util/cmisc/cclash.c
util/cmisc/cid.c
util/cmisc/mkdep.c
util/cmisc/prid.c

index 01703b6..2651e30 100644 (file)
@@ -189,7 +189,7 @@ Salloc(str)
        if (str == 0)
                str = "";
 
-       return strcpy(Malloc(strlen(str) + 1), str);
+       return strcpy(Malloc((unsigned)strlen(str) + 1), str);
 }
 
 EnHash(id)
index d897ef3..c849438 100644 (file)
@@ -55,6 +55,7 @@ DoOption(str)
        }
 }
 
+/*ARGSUSED*/
 CheckId(id, len)
        char *id;
 {
@@ -100,7 +101,7 @@ GetMacros(fn)
 
        if ((fp = fopen(fn, "r")) == NULL) {
                fprintf(stderr, "%s: cannot read file \"%s\"\n", ProgName, fn);
-               return 0;
+               return;
        }
 
        while ((c = getc(fp)) != EOF) {
@@ -163,7 +164,7 @@ Salloc(str)
        if (str == 0) {
                str = "";
        }
-       return strcpy(Malloc(strlen(str) + 1), str);
+       return strcpy(Malloc((unsigned)strlen(str) + 1), str);
 }
 
 struct idf *
index 3e1ca03..3826769 100644 (file)
@@ -76,7 +76,7 @@ add_name(nm)
                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;
@@ -100,6 +100,7 @@ print_namelist(nm, nlp)
        }
 }
 
+/*ARGSUSED*/
 main(argc, argv)
        char *argv[];
 {
@@ -135,10 +136,12 @@ contains_slash(s)
        return 0;
 }
 
+extern char *fgets();
+
 dofile(fn)
        char *fn;
 {
-       char *fgets(), buf[BSIZ];
+       char buf[BSIZ];
        FILE *fp;
        char *nm, *include_line();
 
@@ -156,7 +159,7 @@ dofile(fn)
        while (fgets(buf, BSIZ, fp) != NULL)
                if (nm = include_line(buf)) {
                        add_name(nm);
-                       dofile(nm);
+                       if (dofile(nm)) ;
                }
 
        fclose(fp);
index 9318982..dfd7488 100644 (file)
@@ -106,7 +106,7 @@ Salloc(str)
        if (str == 0)
                str = "";
 
-       return strcpy(Malloc(strlen(str) + 1), str);
+       return strcpy(Malloc((unsigned)strlen(str) + 1), str);
 }
 
 EnHash(id)