2.1.122-pre2 ok, minor patch (Unix98 PTY)

Pavel Janik ml. (Pavel.Janik@inet.cz)
11 Sep 1998 02:10:44 +0200


Hi,

2.1.122-pre2 ok here, the newest PCMCIA utils & APM too.

Minor patch:

if Unix98 PTY support not compiled in, gcc will print some warnings --
variable `i' is used only if Unix98 PTY compiled in and the same
applies for label init_dev_done. Obvious patches below.

--- pty.c-orig Sun Aug 16 20:35:33 1998
+++ pty.c Wed Aug 26 23:25:37 1998
@@ -336,7 +336,9 @@

__initfunc(int pty_init(void))
{
+#ifdef CONFIG_UNIX98_PTYS
int i;
+#endif

/* Traditional BSD devices */

--- tty_io.c-orig Wed Aug 26 12:33:57 1998
+++ tty_io.c Wed Aug 26 23:34:20 1998
@@ -1269,7 +1269,9 @@
return retval;

/* N.B. this error exit may leave filp->f_flags with O_NONBLOCK set */
+#ifdef CONFIG_UNIX98_PTYS
init_dev_done:
+#endif
filp->private_data = tty;
check_tty_count(tty, "tty_open");
if (tty->driver.type == TTY_DRIVER_TYPE_PTY &&

-- 
Pavel Janík ml.
Pavel.Janik@inet.cz

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/faq.html