From ad18e45206ad897cb331a971d39c1b78fdcb11e7 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 9 Aug 2009 15:17:50 +0000 Subject: [PATCH] Nuke a dead variable found with clang and an unused declaration with lint. --- environ.c | 2 -- procname.c | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/environ.c b/environ.c index 10a66340..353b84fa 100644 --- a/environ.c +++ b/environ.c @@ -29,8 +29,6 @@ RB_GENERATE(environ, environ_entry, entry, environ_cmp); -void environ_set1(struct environ *, char *, char *); - int environ_cmp(struct environ_entry *envent1, struct environ_entry *envent2) { diff --git a/procname.c b/procname.c index 61f3a46f..85d5212e 100644 --- a/procname.c +++ b/procname.c @@ -91,7 +91,7 @@ get_proc_name(int fd, char *tty) struct stat sb; size_t len; struct kinfo_proc *buf, *newbuf; - struct proc *p, *bestp; + struct proc *bestp; u_int i; char *name; @@ -121,7 +121,6 @@ retry: for (i = 0; i < len / sizeof (struct kinfo_proc); i++) { if (buf[i].kp_eproc.e_tdev != sb.st_rdev) continue; - p = &buf[i].kp_proc; if (bestp == NULL) bestp = &buf[i].kp_proc; else