diff options
| author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2017-08-28 11:57:52 +0000 |
|---|---|---|
| committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2017-08-28 11:57:52 +0000 |
| commit | fd84e971d4f4598fda8c1792bcc2375d42e82cad (patch) | |
| tree | bc712d645e864f554f554c4220c3311d02b9b03e /usr/src/cmd/print/bsd-sysv-commands | |
| parent | 4973a49c0046838ad10a0aae797a48bde5022e97 (diff) | |
| parent | d7c57852794a9ac50d4b6a9c4161cb10919658aa (diff) | |
| download | illumos-joyent-fd84e971d4f4598fda8c1792bcc2375d42e82cad.tar.gz | |
[illumos-gate merge]
commit d7c57852794a9ac50d4b6a9c4161cb10919658aa
8485 Remove set but unused variables in usr/src/cmd
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands')
| -rw-r--r-- | usr/src/cmd/print/bsd-sysv-commands/disable.c | 3 | ||||
| -rw-r--r-- | usr/src/cmd/print/bsd-sysv-commands/lpr.c | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/disable.c b/usr/src/cmd/print/bsd-sysv-commands/disable.c index 0b3cb71f0c..523eece7aa 100644 --- a/usr/src/cmd/print/bsd-sysv-commands/disable.c +++ b/usr/src/cmd/print/bsd-sysv-commands/disable.c @@ -21,6 +21,7 @@ */ /* + * Copyright 2017 Gary Mills * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * @@ -92,7 +93,6 @@ main(int ac, char *av[]) papi_encryption_t encryption = PAPI_ENCRYPT_NEVER; int exit_status = 0; int cancel = 0; - int pending = 0; /* not implemented */ char *reason = NULL; int c; @@ -105,7 +105,6 @@ main(int ac, char *av[]) cancel = 1; break; case 'W': /* wait for active request, not implemented */ - pending = 1; break; case 'r': /* reason */ reason = optarg; diff --git a/usr/src/cmd/print/bsd-sysv-commands/lpr.c b/usr/src/cmd/print/bsd-sysv-commands/lpr.c index 547e0df36f..b3a95a6c03 100644 --- a/usr/src/cmd/print/bsd-sysv-commands/lpr.c +++ b/usr/src/cmd/print/bsd-sysv-commands/lpr.c @@ -20,6 +20,7 @@ */ /* + * Copyright 2017 Gary Mills * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * @@ -27,8 +28,6 @@ /* $Id: lpr.c 146 2006-03-24 00:26:54Z njacobs $ */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -75,7 +74,6 @@ main(int ac, char *av[]) papi_encryption_t encryption = PAPI_ENCRYPT_NEVER; int dump = 0; int validate = 0; - int remove = 0; int copy = 1; /* default is to copy the data */ char *document_format = "text/plain"; int c; @@ -170,7 +168,6 @@ main(int ac, char *av[]) "rfc-1179-mail", 1); break; case 'r': - remove = 1; break; case 's': copy = 0; |
