Allow no arguments at all and take the input from stdin
authorRobert R. Henry <rrh@ucbvax.Berkeley.EDU>
Mon, 8 Nov 1982 06:05:32 +0000 (22:05 -0800)
committerRobert R. Henry <rrh@ucbvax.Berkeley.EDU>
Mon, 8 Nov 1982 06:05:32 +0000 (22:05 -0800)
SCCS-vsn: usr.bin/checknr/checknr.c 4.5

usr/src/usr.bin/checknr/checknr.c

index 7f643dc..87faf93 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)checknr.c   4.4 (Berkeley) %G%";
+static char *sccsid = "@(#)checknr.c   4.5 (Berkeley) %G%";
 /*
  * checknr: check an nroff/troff input file for matching macro calls.
  * we also attempt to match size and font changes, but only the embedded
 /*
  * checknr: check an nroff/troff input file for matching macro calls.
  * we also attempt to match size and font changes, but only the embedded
@@ -136,8 +136,6 @@ char **argv;
        char *cp;
        char b1[4];
 
        char *cp;
        char b1[4];
 
-       if (argc <= 1)
-               usage();
        /* Figure out how many known commands there are */
        while (knowncmds[ncmds])
                ncmds++;
        /* Figure out how many known commands there are */
        while (knowncmds[ncmds])
                ncmds++;