diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-08-09 17:57:39 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-08-09 17:57:39 +0000 |
commit | 2c863b9f2c9fa546707be71cb5107e684341485e (patch) | |
tree | 9ed5a9fd4ce438e02f1d753e8425d902391d4ffe /osdep-openbsd.c | |
parent | 221ce5afb3f165200b1d40bdca038ba038c69e87 (diff) | |
download | rtmux-2c863b9f2c9fa546707be71cb5107e684341485e.tar.gz rtmux-2c863b9f2c9fa546707be71cb5107e684341485e.tar.bz2 rtmux-2c863b9f2c9fa546707be71cb5107e684341485e.zip |
Sync OpenBSD patchset 235:
Nuke a dead variable found with clang and an unused declaration with lint.
Diffstat (limited to 'osdep-openbsd.c')
-rw-r--r-- | osdep-openbsd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/osdep-openbsd.c b/osdep-openbsd.c index 2657d97c..13f0a1c8 100644 --- a/osdep-openbsd.c +++ b/osdep-openbsd.c @@ -1,4 +1,4 @@ -/* $Id: osdep-openbsd.c,v 1.18 2009-08-09 16:08:12 tcunha Exp $ */ +/* $Id: osdep-openbsd.c,v 1.19 2009-08-09 17:57:39 tcunha Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -91,7 +91,7 @@ osdep_get_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 |