1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00

Nuke unused variables.

This commit is contained in:
Dima Dorfman 2001-06-24 23:41:57 +00:00
parent 8194b338dc
commit 7309915e7a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78737
13 changed files with 4 additions and 22 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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");

View File

@ -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

View File

@ -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);

View File

@ -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];

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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,

View File

@ -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) {

View File

@ -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. */