Source-Changes-HG archive

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

[src/trunk]: src/sys/kern in the bsdpty allocvp flavor, call the bsdpty mknam...



details:   https://anonhg.NetBSD.org/src/rev/e8c84bbb9140
branches:  trunk
changeset: 328123:e8c84bbb9140
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 26 21:29:54 2014 +0000

description:
in the bsdpty allocvp flavor, call the bsdpty mkname directly, since it is
the only one possible to be valid (Ilya Zykov)

diffstat:

 sys/kern/tty_bsdpty.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6b9f12f00220 -r e8c84bbb9140 sys/kern/tty_bsdpty.c
--- a/sys/kern/tty_bsdpty.c     Wed Mar 26 21:28:48 2014 +0000
+++ b/sys/kern/tty_bsdpty.c     Wed Mar 26 21:29:54 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty_bsdpty.c,v 1.17 2010/11/19 06:44:43 dholland Exp $ */
+/*     $NetBSD: tty_bsdpty.c,v 1.18 2014/03/26 21:29:54 christos Exp $ */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_bsdpty.c,v 1.17 2010/11/19 06:44:43 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_bsdpty.c,v 1.18 2014/03/26 21:29:54 christos Exp $");
 
 #include "opt_ptm.h"
 
@@ -121,7 +121,7 @@
        struct nameidata nd;
        char name[TTY_NAMESIZE];
 
-       error = (*ptm->makename)(ptm, l, name, sizeof(name), dev, ms);
+       error = pty_makename(ptm, l, name, sizeof(name), dev, ms);
        if (error)
                return error;
 



Home | Main Index | Thread Index | Old Index