BSD 4_3_Tahoe release
[unix-history] / usr / src / usr.bin / refer / what1.c
index 2a2403e..c95574e 100644 (file)
@@ -1,14 +1,14 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)what1.c     4.1 (Berkeley) 5/6/83";
+static char *sccsid = "@(#)what1.c     4.2 (Berkeley) 9/11/87";
 #endif
 
 #include "what..c"
 
 struct filans files[NFILES];
 char fnames[NAMES];
 #endif
 
 #include "what..c"
 
 struct filans files[NFILES];
 char fnames[NAMES];
-int relfeed 0;
+int relfeed 0;
 char *rb[NFEED];
 char *rb[NFEED];
-char rbb[200], *rbp rbb;
+char rbb[200], *rbp rbb;
 ;
 
 main(argc,argv)
 ;
 
 main(argc,argv)
@@ -16,7 +16,7 @@ char *argv[];
 {
        char *s, *t, *xargv[50], *wd[50];
        struct filans *af;
 {
        char *s, *t, *xargv[50], *wd[50];
        struct filans *af;
-       int xargc 0, nw, nf, i;
+       int xargc 0, nw, nf, i;
        while (argc>1 && argv[1][0]=='-')
        {
                switch(argv[1][1])
        while (argc>1 && argv[1][0]=='-')
        {
                switch(argv[1][1])
@@ -83,10 +83,10 @@ comp(i1, i2)
 wrdoc ( np, argc, argv, relfeed )
 {
        struct filans *af;
 wrdoc ( np, argc, argv, relfeed )
 {
        struct filans *af;
-       char *s, *t, buf[200];
+       char *s, *t, buf[200], *ctime();
        int eval, k, pid;
        int eval, k, pid;
-       FILE *rf NULL;
-       FILE *ans NULL;
+       FILE *rf NULL;
+       FILE *ans NULL;
        pid=getpid();
        for(af=files; af<files+np; af++)
        {
        pid=getpid();
        for(af=files; af<files+np; af++)
        {
@@ -147,7 +147,7 @@ char *wl, *wds[];
 str6cmp(s, t)
 char *s, *t;
 {
 str6cmp(s, t)
 char *s, *t;
 {
-       int i 0, c;
+       int i 0, c;
        while ( (c= *s++ ) == ( *t++))
                if (c==0 || ++i ==6)
                        return(0);
        while ( (c= *s++ ) == ( *t++))
                if (c==0 || ++i ==6)
                        return(0);