Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Fix unused variable 'mp'



details:   https://anonhg.NetBSD.org/src/rev/925472d36e03
branches:  trunk
changeset: 794897:925472d36e03
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Mar 28 11:55:09 2014 +0000

description:
Fix unused variable 'mp'

diffstat:

 sys/kern/tty_pty.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 5f6408126aed -r 925472d36e03 sys/kern/tty_pty.c
--- a/sys/kern/tty_pty.c        Fri Mar 28 11:52:51 2014 +0000
+++ b/sys/kern/tty_pty.c        Fri Mar 28 11:55:09 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty_pty.c,v 1.136 2014/03/27 17:31:56 christos Exp $   */
+/*     $NetBSD: tty_pty.c,v 1.137 2014/03/28 11:55:09 ozaki-r Exp $    */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.136 2014/03/27 17:31:56 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.137 2014/03/28 11:55:09 ozaki-r Exp $");
 
 #include "opt_ptm.h"
 
@@ -1041,7 +1041,9 @@
        const struct cdevsw *cdev;
        u_char *cc = tp->t_cc;
        int stop, error, sig;
+#ifndef NO_DEV_PTM
        struct mount *mp;
+#endif
 
        /*
         * IF CONTROLLER STTY THEN MUST FLUSH TO PREVENT A HANG.



Home | Main Index | Thread Index | Old Index