summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-06-24 23:41:57 +0000
committerdd <dd@FreeBSD.org>2001-06-24 23:41:57 +0000
commit7894e59b7f217dd493250aec7b5da6dd7f2cf1c4 (patch)
tree2ca9b56f962bf287792adbfb0354af3a528ebdcd
parent7129e7905994b1b01e82d0f0c11afcf7a6e5b09e (diff)
downloadFreeBSD-src-7894e59b7f217dd493250aec7b5da6dd7f2cf1c4.zip
FreeBSD-src-7894e59b7f217dd493250aec7b5da6dd7f2cf1c4.tar.gz
Nuke unused variables.
-rw-r--r--usr.bin/mail/main.c2
-rw-r--r--usr.bin/script/script.c1
-rw-r--r--usr.bin/tset/tset.c2
-rw-r--r--usr.sbin/gifconfig/gifconfig.c1
-rw-r--r--usr.sbin/ifmcstat/ifmcstat.c5
-rw-r--r--usr.sbin/kernbb/kernbb.c2
-rw-r--r--usr.sbin/keyserv/crypt_server.c4
-rw-r--r--usr.sbin/keyserv/keyserv.c2
-rw-r--r--usr.sbin/memcontrol/memcontrol.c1
-rw-r--r--usr.sbin/moused/moused.c3
-rw-r--r--usr.sbin/pstat/pstat.c1
-rw-r--r--usr.sbin/sliplogin/sliplogin.c1
-rw-r--r--usr.sbin/ypbind/yp_ping.c1
13 files changed, 4 insertions, 22 deletions
diff --git a/usr.bin/mail/main.c b/usr.bin/mail/main.c
index 0421a88..7c03e17 100644
--- a/usr.bin/mail/main.c
+++ b/usr.bin/mail/main.c
@@ -67,7 +67,7 @@ main(argc, argv)
int i;
struct name *to, *cc, *bcc, *smopts;
char *subject, *replyto;
- char *ef, *cp;
+ char *ef;
char nosrc = 0;
sig_t prevint;
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index e4663f9..5a19095f 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -93,7 +93,6 @@ main(argc, argv)
char ibuf[BUFSIZ];
fd_set rfd;
int flushtime = 30;
- int lastc = 1000;
aflg = kflg = 0;
while ((ch = getopt(argc, argv, "aqkt:")) != -1)
diff --git a/usr.bin/tset/tset.c b/usr.bin/tset/tset.c
index 7a7ca82..ca299ab 100644
--- a/usr.bin/tset/tset.c
+++ b/usr.bin/tset/tset.c
@@ -78,7 +78,7 @@ main(argc, argv)
struct winsize win;
#endif
int ch, noinit, noset, quiet, Sflag, sflag, showterm, usingupper;
- char *p, *t, *tcapbuf, *ttype;
+ char *p, *tcapbuf, *ttype;
if (tcgetattr(STDERR_FILENO, &mode) < 0)
err(1, "standard error");
diff --git a/usr.sbin/gifconfig/gifconfig.c b/usr.sbin/gifconfig/gifconfig.c
index ac876dc..b803236 100644
--- a/usr.sbin/gifconfig/gifconfig.c
+++ b/usr.sbin/gifconfig/gifconfig.c
@@ -564,7 +564,6 @@ phys_status(force)
{
char psrcaddr[256];
char pdstaddr[256];
- char hostname[NI_MAXHOST];
int flags = NI_NUMERICHOST;
char *af;
#ifndef SIOCGLIFPHYADDR
diff --git a/usr.sbin/ifmcstat/ifmcstat.c b/usr.sbin/ifmcstat/ifmcstat.c
index 68cad62..4097c59 100644
--- a/usr.sbin/ifmcstat/ifmcstat.c
+++ b/usr.sbin/ifmcstat/ifmcstat.c
@@ -116,7 +116,6 @@ int main()
{
char buf[_POSIX2_LINE_MAX], ifname[IFNAMSIZ];
struct ifnet *ifp, *nifp, ifnet;
- struct arpcom arpcom;
if ((kvmd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, buf)) == NULL) {
perror("kvm_openfiles");
@@ -179,7 +178,6 @@ if6_addrlist(ifap)
struct ifaddr ifa;
struct sockaddr sa;
struct in6_ifaddr if6a;
- struct in6_multi *mc = 0;
struct ifaddr *ifap0;
ifap0 = ifap;
@@ -198,10 +196,7 @@ if6_addrlist(ifap)
if (ifap0) {
struct ifnet ifnet;
struct ifmultiaddr ifm, *ifmp = 0;
- struct sockaddr_in6 sin6;
- struct in6_multi in6m;
struct sockaddr_dl sdl;
- int in6_multilist_done = 0;
KREAD(ifap0, &ifa, struct ifaddr);
KREAD(ifa.ifa_ifp, &ifnet, struct ifnet);
diff --git a/usr.sbin/kernbb/kernbb.c b/usr.sbin/kernbb/kernbb.c
index 45cd63d..ed3b372 100644
--- a/usr.sbin/kernbb/kernbb.c
+++ b/usr.sbin/kernbb/kernbb.c
@@ -55,7 +55,7 @@ int
main()
{
int i,j;
- u_long l1,l2,l3,l4;
+ u_long l1,l2,l4;
struct bb bb;
char buf[128];
diff --git a/usr.sbin/keyserv/crypt_server.c b/usr.sbin/keyserv/crypt_server.c
index 51024b6..47ffa8f 100644
--- a/usr.sbin/keyserv/crypt_server.c
+++ b/usr.sbin/keyserv/crypt_server.c
@@ -182,11 +182,7 @@ void load_des(warn, libpath)
int warn;
char *libpath;
{
- DIR *dird;
- struct dirent *dirp;
char dlpath[MAXPATHLEN];
- int minor = -1;
- int len;
if (libpath == NULL) {
#ifdef OBJFORMAT_ELF
diff --git a/usr.sbin/keyserv/keyserv.c b/usr.sbin/keyserv/keyserv.c
index 6486c0f..00f58c2 100644
--- a/usr.sbin/keyserv/keyserv.c
+++ b/usr.sbin/keyserv/keyserv.c
@@ -113,8 +113,6 @@ main(argc, argv)
{
int nflag = 0;
int c;
- register SVCXPRT *transp;
- int sock = RPC_ANYSOCK;
int warn = 0;
char *path = NULL;
diff --git a/usr.sbin/memcontrol/memcontrol.c b/usr.sbin/memcontrol/memcontrol.c
index 456ac07..88d4768 100644
--- a/usr.sbin/memcontrol/memcontrol.c
+++ b/usr.sbin/memcontrol/memcontrol.c
@@ -150,7 +150,6 @@ listfunc(int memfd, int argc, char *argv[])
{
struct mem_range_desc *mrd;
int nd, i, j;
- int error;
int ch;
int showall = 0;
char *owner;
diff --git a/usr.sbin/moused/moused.c b/usr.sbin/moused/moused.c
index df3a9b0..77a0c78 100644
--- a/usr.sbin/moused/moused.c
+++ b/usr.sbin/moused/moused.c
@@ -2785,9 +2785,8 @@ kidspad(u_char rxc, mousestatus_t *act)
static int buflen = 0, b_prev = 0 , x_prev = -1, y_prev = -1 ;
static k_status status = S_IDLE ;
static struct timeval old, now ;
- static int x_idle = -1, y_idle = -1 ;
- int deltat, x, y ;
+ int x, y ;
if (buflen > 0 && (rxc & 0x80) ) {
fprintf(stderr, "invalid code %d 0x%x\n", buflen, rxc);
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index bf42a84..1a6efb1 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -621,7 +621,6 @@ mount_print(mp)
struct mount *mp;
{
int flags;
- const char *type;
#define ST mp->mnt_stat
(void)printf("*** MOUNT %s %s on %s", ST.f_fstypename,
diff --git a/usr.sbin/sliplogin/sliplogin.c b/usr.sbin/sliplogin/sliplogin.c
index 5295682..2d8925e 100644
--- a/usr.sbin/sliplogin/sliplogin.c
+++ b/usr.sbin/sliplogin/sliplogin.c
@@ -119,7 +119,6 @@ make_ipaddr(void)
static char address[20] ="";
struct hostent *he;
unsigned long ipaddr;
-int i;
address[0] = '\0';
if ((he = gethostbyname(raddr)) != NULL) {
diff --git a/usr.sbin/ypbind/yp_ping.c b/usr.sbin/ypbind/yp_ping.c
index 33e98e1..be9434e 100644
--- a/usr.sbin/ypbind/yp_ping.c
+++ b/usr.sbin/ypbind/yp_ping.c
@@ -246,7 +246,6 @@ int __yp_ping(restricted_addrs, cnt, dom, port)
CLIENT *clnt;
char *foo = dom;
struct cu_data *cu;
- enum clnt_stat (*oldfunc)();
int validsrvs = 0;
/* Set up handles. */
OpenPOWER on IntegriCloud