no longer needs program name variable
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 28 Apr 1993 09:40:43 +0000 (01:40 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 28 Apr 1993 09:40:43 +0000 (01:40 -0800)
SCCS-vsn: usr.bin/compress/compress.c 5.26

usr/src/usr.bin/compress/compress.c

index 3d3a1ab..2dfd38f 100644 (file)
@@ -12,7 +12,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)compress.c 5.25 (Berkeley) %G%";
+static char sccsid[] = "@(#)compress.c 5.26 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -42,7 +42,6 @@ void  setfile __P((char *, struct stat *));
 void   usage __P((int));
 
 int eval, force, verbose;
 void   usage __P((int));
 
 int eval, force, verbose;
-char *progname;
 
 int
 main(argc, argv)
 
 int
 main(argc, argv)
@@ -58,16 +57,12 @@ main(argc, argv)
                p = argv[0];
        else
                ++p;
                p = argv[0];
        else
                ++p;
-       if (!strcmp(p, "uncompress")) {
-               progname = "uncompress";
+       if (!strcmp(p, "uncompress"))
                style = DECOMPRESS;
                style = DECOMPRESS;
-       } else if (!strcmp(p, "compress")) {
-               progname = "compress";
+       else if (!strcmp(p, "compress")) 
                style = COMPRESS;
                style = COMPRESS;
-       } else {
-               progname = *argv;
+       else
                errx(1, "unknown program name");
                errx(1, "unknown program name");
-       }
 
        bits = cat = 0;
        while ((ch = getopt(argc, argv, "b:cdfv")) != EOF)
 
        bits = cat = 0;
        while ((ch = getopt(argc, argv, "b:cdfv")) != EOF)