summaryrefslogtreecommitdiffstats
path: root/osdep-netbsd.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-09 18:00:45 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-09 18:00:45 +0000
commit6297285527a77bfff80c644c4a86efed8c39cabd (patch)
tree8cdd522456aa7e613b6c9adaa2fd3b0bedb63963 /osdep-netbsd.c
parent2c863b9f2c9fa546707be71cb5107e684341485e (diff)
Nuke dead variable here as well, in accordance to OpenBSD patchset 235.
Diffstat (limited to 'osdep-netbsd.c')
-rw-r--r--osdep-netbsd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/osdep-netbsd.c b/osdep-netbsd.c
index c2b89af6..95e3552e 100644
--- a/osdep-netbsd.c
+++ b/osdep-netbsd.c
@@ -1,4 +1,4 @@
-/* $Id: osdep-netbsd.c,v 1.7 2009-08-09 16:37:05 tcunha Exp $ */
+/* $Id: osdep-netbsd.c,v 1.8 2009-08-09 18:00:45 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -68,7 +68,7 @@ osdep_get_name(int fd, __unused char *tty)
int mib[6];
struct stat sb;
size_t len, i;
- struct kinfo_proc2 *buf, *newbuf, *p, *bestp;
+ struct kinfo_proc2 *buf, *newbuf, *bestp;
char *name;
if (stat(tty, &sb) == -1)
@@ -103,7 +103,6 @@ retry:
for (i = 0; i < len / sizeof (*buf); i++) {
if (buf[i].p_tdev != sb.st_rdev)
continue;
- p = &buf[i];
if (bestp == NULL)
bestp = &buf[i];
else