diff --git a/usr.bin/mail/main.c b/usr.bin/mail/main.c index 0421a88489c7..7c03e170351f 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 e4663f9b4c29..5a19095fd065 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 7a7ca82eb8c1..ca299ab9093f 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 ac876dcbd2f7..b8032364971e 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 68cad627af68..4097c590b22c 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 45cd63da9d8e..ed3b372f125c 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 51024b68b569..47ffa8faf48a 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 6486c0ff5492..00f58c295314 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 456ac077ed98..88d4768f6814 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 df3a9b0a75c8..77a0c782ec15 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 bf42a841f6da..1a6efb1d890a 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 5295682bb0e4..2d8925ea9828 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 33e98e18b6ef..be9434e89813 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. */