]> git.neil.brown.name Git - history.git/commitdiff
Undo recent tty_io.c "fix".
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 7 Feb 2005 00:37:08 +0000 (16:37 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 7 Feb 2005 00:37:08 +0000 (16:37 -0800)
The fix was just trying to hide the real bug, which was in
an old udev script. The change made matters worse.

Cset exclude: pavenis@latnet.lv[torvalds]|ChangeSet|20050202164823|05506

drivers/char/tty_io.c

index aa996795a5052493225e0fe3a85339076ae8a9c0..0edec4f95c30f62c256401e7f06d6447d5af2d0d 100644 (file)
@@ -1156,8 +1156,8 @@ static inline void pty_line_name(struct tty_driver *driver, int index, char *p)
        int i = index + driver->name_base;
        /* ->name is initialized to "ttyp", but "tty" is expected */
        sprintf(p, "%s%c%x",
-               driver->subtype == PTY_TYPE_SLAVE ? "pty" : driver->name,
-               ptychar[i >> 4 & 0xf], i & 0xf);
+                       driver->subtype == PTY_TYPE_SLAVE ? "tty" : driver->name,
+                       ptychar[i >> 4 & 0xf], i & 0xf);
 }
 
 static inline void tty_line_name(struct tty_driver *driver, int index, char *p)