From ad18e45206ad897cb331a971d39c1b78fdcb11e7 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 9 Aug 2009 15:17:50 +0000 Subject: Nuke a dead variable found with clang and an unused declaration with lint. --- procname.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'procname.c') 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 -- cgit v1.2.3