summaryrefslogtreecommitdiff
path: root/usr/src/cmd/bnu
diff options
context:
space:
mode:
authorGary Mills <gary_mills@fastmail.fm>2017-08-12 12:32:18 -0500
committerDan McDonald <danmcd@joyent.com>2017-08-26 21:12:13 -0400
commitd7c57852794a9ac50d4b6a9c4161cb10919658aa (patch)
treef65d8e023522c8e06497e86283b59ad2fce98886 /usr/src/cmd/bnu
parentb31ca922c7346747131aed07c0c171ec2f573aac (diff)
downloadillumos-gate-d7c57852794a9ac50d4b6a9c4161cb10919658aa.tar.gz
8485 Remove set but unused variables in usr/src/cmd
Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Yuri Pankov <yuripv@gmx.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/cmd/bnu')
-rw-r--r--usr/src/cmd/bnu/uuglist.c6
-rw-r--r--usr/src/cmd/bnu/uustat.c5
2 files changed, 3 insertions, 8 deletions
diff --git a/usr/src/cmd/bnu/uuglist.c b/usr/src/cmd/bnu/uuglist.c
index 7524860c32..3b2f56ebf6 100644
--- a/usr/src/cmd/bnu/uuglist.c
+++ b/usr/src/cmd/bnu/uuglist.c
@@ -20,6 +20,7 @@
* CDDL HEADER END
*/
/*
+ * Copyright 2017 Gary Mills
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,8 +29,6 @@
/* All Rights Reserved */
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "uucp.h"
#define MAXLENGTH 256
@@ -129,13 +128,12 @@ rproc()
FILE *cfd;
char line[BUFSIZ];
char *carray[C_MAX];
- int na;
cfd = fopen(GRADES, "r");
while (rdfulline(cfd, line, BUFSIZ) != 0) {
- na = getargs(line, carray, C_MAX);
+ (void) getargs(line, carray, C_MAX);
insert(carray[0]);
}
diff --git a/usr/src/cmd/bnu/uustat.c b/usr/src/cmd/bnu/uustat.c
index 67031d6866..992f68c5da 100644
--- a/usr/src/cmd/bnu/uustat.c
+++ b/usr/src/cmd/bnu/uustat.c
@@ -20,6 +20,7 @@
* CDDL HEADER END
*/
/*
+ * Copyright 2017 Gary Mills
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -27,7 +28,6 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-#pragma ident "%Z%%M% %I% %E% SMI"
#include <time.h>
#include "uucp.h"
@@ -1542,9 +1542,6 @@ friendlytime(uplimit, lolimit)
char *uplimit, *lolimit;
{
- char c;
-
- c = *(uplimit+6);
friendlyptr->uhour[0] = *(uplimit+6);
friendlyptr->uhour[1] = *(uplimit+7);
friendlyptr->lhour[0] = *(lolimit+6);